Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to change Oracle Compiler to JDK 1.5

 
shashi wagh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have java program, when I compile it in Oracle I got following error
ORA-29521: referenced name java/lang/StringBuilder could not be found

because oracle has older jdk.

How do I change the compiler level to JDK 1.5 or above to compile my program.
Note: I don't want to change the code for older compatibility.


Please Help me...............

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you using to compile your source ? An editor ? The command line ?
 
shashi wagh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using TOAD [editor] to compile it
 
Fatih Keles
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your current oracle version and internal jvm version? You can find many threads regarding this issue saying "it is not possible to upgrade internal jvm other than 11g". Better to downgrade your java code to 1.4 (if it is to be in 10g).

Regards,

Fatih.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic