Problem With Running A Program
#1
Posted 09 February 2012 - 10:09 PM
Up until today everything was fine. I ran a program this morning and everything worked just fine, now when I try and run it I get the following output.
Please let me know what I can do to correct this.
Thank you.
--------------------Configuration: <Default>--------------------
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
See http://www.oracle.co...tion/index.html for more details.
#2
Posted 11 February 2012 - 06:20 AM
Still will not run in Pro version.
It will run in the LE version.
Would like to know what to do as I have paid for Pro and am not able to use it!
#3
Posted 14 February 2012 - 07:18 PM
I purchased the Pro version in the middle of January. everything worked fine up until a couple of days ago.
I have posted to the forum board as well as directly to @xinox profile and even a private e-mail to JCreator support.
Up to this moment I receive NO response. Is this what we are to expect from JCreator? I personally find this completly unacceptable!
I have paid for a program and am now unable to use it and I get no support from JCreator???
Please provide an explaination as well as a solution, or refund me my money and I will switch to some other program for my Java programming.
#4
Posted 14 February 2012 - 10:42 PM
Enable the checkbox, show command line.
Verify that the textbox has the following line:
Command : "$[JavaHome]\bin\javac.exe"
On the second tab
Paramters : -g -source 1.5 -classpath "$[ClassPath]" -d "$[OutputPath]" $[JavaFiles]
If it still doesn't work then reply the content from the build view. It will now include additional info.
#5
Posted 15 February 2012 - 12:00 AM
xinox, on 14 February 2012 - 10:42 PM, said:
Enable the checkbox, show command line.
Verify that the textbox has the following line:
Command : "$[JavaHome]\bin\javac.exe"
On the second tab
Paramters : -g -source 1.5 -classpath "$[ClassPath]" -d "$[OutputPath]" $[JavaFiles]
If it still doesn't work then reply the content from the build view. It will now include additional info.
--------------------Configuration: <Default>--------------------
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
See http://www.oracle.co...tion/index.html for more details.
Process completed
Is there a configuration file that I can e-mail you and you can correct and send back to me if that is what the problem is?
#6
Posted 15 February 2012 - 12:13 AM
Open the options dialog, select the JDK Tools pane, open the Run Application tool.
Also enable the checkbox, show command line.
Verify that the textbox has the following line:
Command : "$[JavaHome]\bin\java.exe"
On the second tab
Paramters : -classpath "$[ClassPath]" $[JavaClass]
If it still doesn't work then reply the content from the general view. It will now include additional info.
Or attach the configuration file: jdktools_options.xml,
Which you can find via the options dialog, click on the yellow like icon on the bottom left, and open the sub folder.
#7
Posted 15 February 2012 - 12:50 AM
xinox, on 15 February 2012 - 12:13 AM, said:
Open the options dialog, select the JDK Tools pane, open the Run Application tool.
Also enable the checkbox, show command line.
Verify that the textbox has the following line:
Command : "$[JavaHome]\bin\java.exe"
On the second tab
Paramters : -classpath "$[ClassPath]" $[JavaClass]
If it still doesn't work then reply the content from the general view. It will now include additional info.
Or attach the configuration file: jdktools_options.xml,
Which you can find via the options dialog, click on the yellow like icon on the bottom left, and open the sub folder.
sorry but i dont see where to attach a file...
<?xml version="1.0" encoding="UTF-8"?>
<!--Modified on Tuesday February 14 15:55:55, 2012 --> -<options> -<jdktools_options> -<jdktools> -<jdktool> <label><Default></label> <command>"$[JavaHome]\bin\javac.exe"</command> <params>-g -classpath "$[ClassPath]" -d "$[OutputPath]" $[JavaFiles]</params> <flags>1042</flags> <type>0</type> <guid>40</guid> </jdktool> -<jdktool> <label><Default></label> <command>"$[JavaHome]\bin\java.exe"</command> <params>-classpath "$[ClassPath]" $[JavaClass]</params> <flags>66570</flags> <type>1</type> <guid>34</guid> </jdktool> -<jdktool> <label>Compiler</label> <command>"$[JavaHome]\bin\javac.exe"</command> <params>-g -source 1.5 -classpath "$[ClassPath]" -d "$[OutputPath]" $[JavaFiles]</params> <flags>17424</flags> <type>0</type> <guid>25</guid> </jdktool> </jdktools> <sel_tool>0</sel_tool> </jdktools_options> </options>
#8
Posted 15 February 2012 - 02:23 AM
Can you reply the output after enabling the option "show command line"?
#9
Posted 15 February 2012 - 02:25 AM
So that JCreator will start up with all defaults. Make sure you close JCreator first.
#10
Posted 15 February 2012 - 02:35 AM
xinox, on 15 February 2012 - 02:23 AM, said:
Can you reply the output after enabling the option "show command line"?
When you say "Can you reply the output after enabling the option "show command line"?". I'm not quite sure what you mean. I have sent you the General Output that is displayed after trying to run. Do you want me to take some screen shots of something?
It seems to work occasionally as well. I just tried to run a program and it worked. I closed it, opened it again, ran it, and then I get the output as above.
#11
Posted 15 February 2012 - 02:39 AM
xinox, on 15 February 2012 - 02:25 AM, said:
So that JCreator will start up with all defaults. Make sure you close JCreator first.
Where would I find this folder? I have no folder called options in my JCreatorV5 folder in my system directory.
#12
Posted 15 February 2012 - 11:19 AM
nyccanuck, on 15 February 2012 - 02:35 AM, said:
It seems to work occasionally as well. I just tried to run a program and it worked. I closed it, opened it again, ran it, and then I get the output as above.
- Open the options dialog.
- Select the JDK Tools pane.
- Open the Run Application tool.
- Enable the checkbox, show command line.
- Run the project.
- Copy and paste the output to this forum.
#13
Posted 15 February 2012 - 11:20 AM
nyccanuck, on 15 February 2012 - 02:39 AM, said:
- Open the options dialog.
- Click on the yellow like icon on the bottom left
- Windows Explorer will open with the sub folder "Options"
#14
Posted 15 February 2012 - 06:40 PM
xinox, on 15 February 2012 - 11:19 AM, said:
- Open the options dialog.
- Select the JDK Tools pane.
- Open the Run Application tool.
- Enable the checkbox, show command line.
- Run the project.
- Copy and paste the output to this forum.
--------------------Configuration: <Default>--------------------
Command : "C:\Program Files (x86)\Java\jre6\bin\javac.exe" -g -source 1.5 -classpath "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe" -d "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe" "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe\Assign5aCharCounter.java"
Directory : "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe"
Failed to start the following executable, "C:\Program Files (x86)\Java\jre6\bin\javac.exe" -g -source 1.5 -classpath "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe" -d "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe" "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe\Assign5aCharCounter.java"
For help, please refer to http://www.jcreator....nstallation.htm
Process completed.
#15
Posted 15 February 2012 - 09:36 PM
nyccanuck, on 15 February 2012 - 06:40 PM, said:
Command : "C:\Program Files (x86)\Java\jre6\bin\javac.exe" -g -source 1.5 -classpath "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe" -d "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe" "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe\Assign5aCharCounter.java"
Directory : "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe"
Failed to start the following executable, "C:\Program Files (x86)\Java\jre6\bin\javac.exe" -g -source 1.5 -classpath "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe" -d "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe" "C:\Users\Stefan-Satellite\Desktop\2012 Winter\Comp_1230-01\Assignments\05\maybe\Assign5aCharCounter.java"
For help, please refer to http://www.jcreator....nstallation.htm
Process completed.
So I uninstalled everything and then reinstalled in order to have a fresh start.
Now the program works, but I receive the following when compiling.
--------------------Configuration: <Default>--------------------
warning: [options] bootstrap class path not set in conjunction with -source 1.5
1 warning
Process completed.
The programs still compiles and runs. Is this something that I can/should correct, or should I just ignore?
#16
Posted 15 February 2012 - 09:50 PM
nyccanuck, on 15 February 2012 - 09:36 PM, said:
Now the program works, but I receive the following when compiling.
--------------------Configuration: <Default>--------------------
warning: [options] bootstrap class path not set in conjunction with -source 1.5
1 warning
Process completed.
The programs still compiles and runs. Is this something that I can/should correct, or should I just ignore?
I spoke too soon. It is happening again!!!!
#17
Posted 15 February 2012 - 10:30 PM
- Open the Options dialog,
- Select the JDK Profiles,
- Select the first item and only item from the list
- Press Edit.
Make sure the path points to C:\Program Files\Java\jdk1.6.0_31\
Or any directory which includes jdk.
The current path is set to jre6, which is causing the problems.
If you don't have JDK, then download it from http://www.oracle.co...oads/index.html
#18
Posted 15 February 2012 - 11:19 PM
xinox, on 15 February 2012 - 10:30 PM, said:
- Open the Options dialog,
- Select the JDK Profiles,
- Select the first item and only item from the list
- Press Edit.
Make sure the path points to C:\Program Files\Java\jdk1.6.0_31\
Or any directory which includes jdk.
The current path is set to jre6, which is causing the problems.
If you don't have JDK, then download it from http://www.oracle.co...oads/index.html
I am running jdk1.7 on my machine. Following is what my program points to at the moment. Still does not work.
C:\Program Files (x86)\Java\JR7\
#19
Posted 15 February 2012 - 11:40 PM
nyccanuck, on 15 February 2012 - 11:19 PM, said:
C:\Program Files (x86)\Java\JR7\
Correct, it is the Java Runtime Environment. (JRE)
You need to locate the JDK directory, if not installed, download it.
C:\Program Files (x86)\Java\jdk1.7.0
or
C:\Program Files\Java\jdk1.7.0
#20
Posted 15 February 2012 - 11:55 PM
xinox, on 15 February 2012 - 11:40 PM, said:
You need to locate the JDK directory, if not installed, download it.
C:\Program Files (x86)\Java\jdk1.7.0
or
C:\Program Files\Java\jdk1.7.0
Reinstalled the JDK to
C:\Program Files (x86)\Java\jdk1.7.0_03\
This is what my JDK profile points to.
Worked the first time I ran a program. Closed JCreator, opened up again, and same as before.











