Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I have two questions.

 
larry lan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two questions.
1
should I use chinese language in here?
because my english is very poor.
2
This code can be completed,but there is a problem in runtime.
I usualy ues Eclipse.This code's result in Eclipse is different than in commad(DOS,javac.exe)
In Eclipse ,the result is always whole number
In DOS,the result is always "radom" number
Who can tell me why is differenc.

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1). This is an English website, so foreign language posts are removed. besides, I think your english is fine.

2). My guess would be that in DOS your classpath is different than what is in Eclipse. Do you have different versions of Java's SDK on your machine. One could be pointing to one version, while the other to the other version.

Mark
 
K Riaz
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figure out which JDK your eclipse project is using (right click on the project and there is an option somewhere with all the JDK jar files).

Search your machine for "java.exe" or "rt.jar".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic