Showing posts with label jdk with netbeans. Show all posts
Showing posts with label jdk with netbeans. Show all posts

Thursday, 15 December 2011

Verify the Port/SID

See Set up CLASSPATH
If you do not configure the default listener port numbers or database SID in your installation--such as ports 1521, 2481, and SID orcl--the samples will not work correctly. All the samples expect the default port numbers and database SID provided by an Oracle8i Typical install. If you have different values, specify the new port numbers as follows:
Host type  Directions  

UNIX  

$ make SERVICE=sess_iiop://localhost:myportnum:mysid  

Windows NT  

In the control panel, set the system environment variable ORACLE_SERVICE to sess_iiop://localhost:myportnum:mysid  
See Test Install with Samples

Install JDK on the Client


The client system is defined as the system where you execute the JServer tools, such as loadjavadeployejb. You can use the same system for both your client and server.
The client system requires JDK 1.1.6 or later. Solaris 2.6 bundles JDK 1.1.3, which does not work with our samples. Verify that your PATH includes JDK 1.1.6 or later and does not include JDK 1.1.3. To confirm what version of the JDK you are using, perform the following:
$ which java
/usr/local/packages/jdk1.1.6/bin/java 
$ which javac 
/usr/local/packages/jdk1.1.6/bin/javac 
$ java -version
java version "1.1.6"
If JDK 1.1.6 does not appear within these commands, either put your JDK 1.1.6 installation at the start of PATH or remove the 1.1.3 installation. In addition, check your CLASSPATH for references to the incorrect JDK version.


Note:
All Oracle8i Java-based client tools work in the Java 2 environment.