• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

I have two questions.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".
 
crispy bacon. crispy tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic