aspose file tools*
The moose likes Java in General and the fly likes How to compile Java Program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to compile Java Program" Watch "How to compile Java Program" New topic
Author

How to compile Java Program

Babu Daan
Greenhorn

Joined: Nov 05, 2001
Posts: 17
Hello Friends,
What did change in Java version 1.3 that I need to compile it differently. I had some programs written for Jdk1.2.2. I donno why I am not able to compile and run them in Jdk1.3. What are the changes. I am able to compile them using oldjavac and run them using oldjava.
Any help is appreciated.
thanks!
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
I switched from 1.2 to 1.3 with no problems. What kind of errors are you getting?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Babu Daan
Greenhorn

Joined: Nov 05, 2001
Posts: 17
It is giving me the exception saying
Exception in thread "main" java.lang.NoClassDefFoundError: hereClassName
It is not able to find the class. Why!!
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
Is the class in your classpath?
Ronald Schindler
Ranch Hand

Joined: Jul 11, 2000
Posts: 50
Question: did you ever get this figured out? I'm having a similar problem. I'm getting this error:
Exception in thread "main" java.lang.NoClassDefFoundError: testClass
It works fine on my one harddrive but not on the other. I looked at the Path and Classpath for both and they contain the same information. My immediate workaround is to use my old disk but its not how I'd like to continue.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to compile Java Program
 
Similar Threads
launching class file; java
unable to run servlets
Compile and run java program in Macintosh
JSP Compiler
Having problems running programs in Textpad