Note that there are some explanatory texts on larger screens.

plurals
  1. POConflict in compilation of Java Code on Window xp
    primarykey
    data
    text
    <p>I was trying to go stone-age on Java and decided to run programs without the use of IDE. Soon, I found myself looking at a program which needed me to import an external jar file. I did face some problems but thanks to my ever faithful sidekick (Stackoverflow.com) I overcame them all and Wham!! executed my program. </p> <p>Now, all of a sudden this query strike me brain. Will the same code run on windows xp too(I sincerely dont know why that would occur to me). So by placing the trust on my ever sidekick I embarked upon the journey.Here is the overview of what I did:</p> <ol> <li><p>VMware --->> XP ---->> JDK Latest Download -->> Run Setup --->> </p> <p>set Path = C/Programs/1.7/bin and CLASSPATH = "C:\Program Files (x86)\Java\jdk1.7.0\jre\lib\ext" (both are set as Enviromental variables) -->>Copied and pasted the external jar file into the CLASSPATH directory -->> cmd -->> javac Myclass.java -->> compiled and .class file created at the same loaction as my Java file --->> java Myclass -->> couldnot find or load main class --->> java -cp . Myclass -->> NoclassdefFoundError .</p></li> </ol> <p>Now the thing that baffles my is that the i did the same thing with the same code(same imports, jar ,everything) in windows 7 and it did copile and did gimme the output then why is it acting like a jerk in XP? Please Help. </p> <p>Code is Quite Simple :</p> <pre><code> import com.gesmallworld.core.acp.AcptAcp; </code></pre> <p>public class AcpE1 extends AcptAcp {</p> <pre><code>public static void main(String[] args) { System.out.println("Hello World"); } </code></pre> <p>}</p> <p>P.S: I tried to compile the code by removing the "extends AcptAcp" and found that it result in error free output on xp.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload