Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create java class in database

RNNov 3 2014 — edited Aug 1 2019

Please help me with some basics:

1. I have a Java project which when opened in NetBeans, shows various packages and each package having several .java files

How do I load them into a db account? (its not my local db)

the way I am doing is, through sql developer, I connect to the db account. Right Click on Java, and load the .java file.

Questions:

1. Is this the right way of loading Java classes into db? or Do I compile .java into .class and then ask DBA to load them into server?

2. The .java files which import external libraries or even import java files from other packages of that java project, don't compile. What should I do?

e.g. import java.util.Properties

or

import pkg1.pk2.TestJavaException

3. How can I see compilation errors?

Thanks a lot,

This post has been answered by unknown-7404 on Nov 6 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2014
Added on Nov 3 2014
3 comments
1,360 views