+Deviln+ The power of JAVA compels you!
Marcus Deviln wrote:...do I need to edit or add any environment variables? Could that be a possible culprit? ...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Marcus Deviln wrote:... When I look in the 'c:\Program Files\java\jdk1.6\bin' folder I don't see any file or folder named 'javac'...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Marcus Deviln wrote:I keep getting this miserable noclassDefFoundError when i run from cmd.exe which of course means the OS can't find the compiler right?
Marcus Deviln wrote:When I look in the 'c:\Program Files\java\jdk1.6\bin' folder I don't see any file or folder named 'javac'. Where is the compiler?
Marcus Deviln wrote:...and do I need to edit or add any environment variables? Could that be a possible culprit? I know about compiling the source files first to produce the .class files but it always says: 'javac' is not an internal or externally recognized command...
+Deviln+ The power of JAVA compels you!
Marcus Deviln wrote:When I try to use the java command it's that same block of exceptions" exception in main thread..."
+Deviln+ The power of JAVA compels you!
+Deviln+ The power of JAVA compels you!
Marcus Deviln wrote:
c:\Java>java Child.java
Exception in thread "main" java.lang.NoClassDefFoundError: Child
Caused by: java.lang.ClassNotFoundException: Child.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:202
at java.security.AccessController.doPrivileged(Native Me
at java.net.URLClassLoader.findClass(URLClassLoader.java
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.j
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: Child.java. Program will exit.
When you do things right, people won't be sure you've done anything at all.
Marcus Deviln wrote:check this out:
C:\Windows\System32>java Child
Error: could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg'
When you do things right, people won't be sure you've done anything at all.
C:\>java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
C:\>javac -version
javac 1.6.0_20
C:\>
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
+Deviln+ The power of JAVA compels you!
Marcus Deviln wrote:...Error: could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg'...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
+Deviln+ The power of JAVA compels you!
+Deviln+ The power of JAVA compels you!
Marcus Deviln wrote:I moved the Java folder into the Program Files directory and when I type: java -version...
c:\Program Files\Java>javac Child.java
javac: file not found: Child.java
Usage: javac <options> <source files>
use -help for a list of possible options
c:\Program Files\Java>javac -version
javac 1.6.0_20
c:\Program Files\Java>java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
c:\Program Files\Java>
...so now the java version is showing up
When you do things right, people won't be sure you've done anything at all.
+Deviln+ The power of JAVA compels you!
When you do things right, people won't be sure you've done anything at all.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |