Hi I am complete newbie with Java I am trying to get a app I need for to working Unfortunately it in java source code I tried compiling it Sun NetBeans IDE 5.5 I am using command prompt not the GUI I trying to get app compiling but when I when I try to run the make file for a multi file source code compiling using the authors make file.
The in directory c:\3dtools\j3d/loader/Makefile Exception in thread "main" java.lang.NoClassDefFoundError: Makefile
Exception in thread "main" java.lang.NoClassDefFoundError: Makefile
What command exactly are you typing in to run this? The error message suggests that you're trying to run a makefile as if it is a Java program, i.e., you must be typing in something like:
on the command line. That will not work, because the file named Makefile is not a Java class file.
You need the 'make' utility to run makefiles. Note that this utility is not normally included with Windows (it is with most versions of Unix). You'll need to find a Windows version of the 'make' utility, but most likely it will be much easier if you just execute the commands in the Makefile by hand from the console window, e.g.:
javac -classpath ..\.. ..\..\Export3D.java cd ..\.. java -classpath . -Xmx512m Export3D [ December 15, 2006: Message edited by: Jesper Young ]
I can not get the javac working should I replace it with java instead?
No; 'javac' is the compiler, 'java' is the launcher to start programs. They are different programs with different purposes so you can't just replace one with the other.
Do you have Java installed correctly? Do you know how to use it? Before trying to compile and figure out some program that someone else wrote, learn how to write a simple program yourself and to use the compiler. See the Java Beginners FAQ.
Joined: Nov 14, 2006
So what is the difference between java and javac, and where can I get a javac compatible compiler?