This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOS:differences of implementation of RMIC in Windows & Linux

 
chandana sapparapu
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I would appreciate it very much if someone could tell me why my code compiles with RMIC on windows, but throws exceptions in Linux. Could someone tell me why this is so.
java.lang.NullPointerException
at 0x40268de4: java.lang.Throwable.Throwable() (/usr/lib/./libgcj.so.3)
at 0x4025bcaf: java.lang.Exception.Exception() (/usr/lib/./libgcj.so.3)
at 0x4025f56f: java.lang.RuntimeException.RuntimeException() (/usr/lib/./libgcj.so.3)
at 0x4025ec67: java.lang.NullPointerException.NullPointerException() (/usr/lib/./libgcj.so.3)
at 0x4021b627: _Jv_ThrowNullPointerException (/usr/lib/./libgcj.so.3)
at 0x403202cb: ?? (??:0)
at 0x4031c817: gnu.java.rmi.rmic.RMIC.generateStub() (/usr/lib/./libgcj.so.3)
at 0x4031b6ed: gnu.java.rmi.rmic.RMIC.processClass(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x4031b644: gnu.java.rmi.rmic.RMIC.run() (/usr/lib/./libgcj.so.3)
at 0x4031b507: gnu.java.rmi.rmic.RMIC.main(java.lang.String[]) (/usr/lib/./libgcj.so.3)
at 0x40242dd8: gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/./libgcj.so.3)
at 0x402ad02d: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
at 0x4024fc4c: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
at 0x4021c8ac: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/./libgcj.so.3)
at 0x4021c9cd: JvRunMain (/usr/lib/./libgcj.so.3)
at 0x080485a8: ?? (??:0)
at 0x42015574: __libc_start_main (/lib/tls/libc.so.6)
at 0x080484f5: ?? (??:0)
Thanks & Regards,
chandana
 
Vinod Chandana
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi chandana,
I think the versions used are different. I think u r using the linux version of rmic. Try using the current version.
Vinod.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you're using GNU "gcj" Java compiler implementation, rather than Sun's JDK. Download the JDK, install it, and update your path to point to the JDK before it points to /usr/bin or wherever gcj is installed.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
test
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic