Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Receiving error on Unix server-- java.lang.UnsatisfiedLinkError: registerNatives Post 302086168 by loveToBlade on Tuesday 22nd of August 2006 05:44:05 PM
Old 08-22-2006
Receiving error on Unix server-- java.lang.UnsatisfiedLinkError: registerNatives

Hi all,

This is my first shell script, so I'm hoping the problem is that I'm just missing something, and not something bigger. I have a Java application that I wrote in WSAD that reads data from an Excel file and inserts values into a DB2 database. I'm able to run it successfully in WSAD. I am trying to write a Bourne shell script to call the main method so that I can have a cron job that runs the app at a specific time. It seems to be failing once I add the rt.jar in the classpath. Thanks in advance for looking.

This is my script:

#!/bin/sh
cd /usr/local/xmlMQ2smtp2

JAVA_COMPILER=off
export JAVA_COMPILER
JAVA_HOME= /usr/jdk_base

CLASSPATH=.
CLASSPATH=$CLASSPATH:migrationApplication.jar
CLASSPATH=$CLASSPATH:/usr/jdk_base/lib/classes.zip
CLASSPATH=$CLASSPATH:/usr/local/classes/jxl.jar
CLASSPATH=$CLASSPATH:/usr/local/classes/log4j.jar
#CLASSPATH=$CLASSPATH:/usr/local/classes/db2java.zip
#CLASSPATH=$CLASSPATH:/usr/local/classes/j2ee.jar
CLASSPATH=$CLASSPATH:/usr/java131/jre/lib/rt.jar

export CLASSPATH

java -classpath $CLASSPATH com.form.migrationapplication.Migrate

java.lang.UnsatisfiedLinkError: registerNatives
at
at java.util.HashMap.rehash(HashMap.java:301)
at java.util.HashMap.put(HashMap.java:362)
at jxl.biff.FormattingRecords.addFormat(FormattingRecords.java:143)
at jxl.read.biff.WorkbookParser.parse(WorkbookParser.java:328)
at jxl.Workbook.getWorkbook(Workbook.java:167)
at com.form.migrationapplication.ReadExcelFile.read(Read
ExcelFile.java:89)
at com.form.migrationapplication.Migrate.main(Migrate.ja
va:28)
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

java.lang.System when running jar

Hello, I recieve the following error when trying to run the following command in a ksh. The operating system is AIX5.1. /usr/bin/jar -xvf {filename}.zip Can't find class java.lang.System But when I run it on the command line it unzips the file fine. Does anybody know why this... (2 Replies)
Discussion started by: ctcuser
2 Replies

2. Linux

java unsatisfiedLinkError

I have an ant build file im using to build and run a software package im developing. I'm writing an automatic build script that will each night pull a clean project from CVS, build it, and run some tests on it. I have everything running but the tests. The test requires the running of a seperate... (0 Replies)
Discussion started by: kingfinny
0 Replies

3. Solaris

UnsatisfiedLinkError libLicense.so: ld.so.1: java: fatal: libssl.so.0.9.8: open faile

Hi Guys, Please help me out. I am new to solaris. I am using solaris 10 ___________________________________________________________ public class Filecheck{ public static void main(String args) { System.out.println("LD_LIBRARY_PATH is : "+System.getProperty("java.library.path"));... (5 Replies)
Discussion started by: josh_chrisin
5 Replies

4. Solaris

java.lang.OutofMemoryError in Sun Studio 12

Hello everyone, I have installed Sun Studio 12 in my Sun Solaris 10 (x86) OS. At first, there was nothing wrong with it but recently, I couldn't open the Sun Studio IDE. When I try to open it, I keep on getting the following error messages:... (2 Replies)
Discussion started by: wintersakura
2 Replies

5. Shell Programming and Scripting

Connecting to remote unix server using java?

I need help writing java code that can connect to a remote unix server, and run a script on that server. I have scoured the internet, but I have been unable to find proper documentation on how this can be accomplished. Any help is appreciated thanks. (1 Reply)
Discussion started by: developncode
1 Replies

6. Red Hat

Sendmail fails receiving mail since the IP changed on Redhat Server

Hi, Since i move my Linux Redhat server on another Network with new IP address. WE'RE ABLE TO SEND MAIL OUTSIDE BUT we can not receive any incoming mail. It alway points to the old IP. I updated new IP in /etc/hosts and /etc/sysconfig/network then reboot the system. 10.117.32.20 is an old ip... (3 Replies)
Discussion started by: lamoul
3 Replies

7. IP Networking

UDP Server/Daemon for receiving & acknowledging data

I'm looking for a couple high level pointers to writing a UDP server that will be acknowledging data at a rate of approximately twelve packets every second and will be running on and older but more or less dedicated Solaris 9 box. Acknowledging the data packets is relatively simple, after... (2 Replies)
Discussion started by: allbread
2 Replies

8. Shell Programming and Scripting

mail is not receiving from the server

Dear All, I am using CentOS release 5.5 (Final).I want to monitoring the system activity through mail.But the <code>mail -s "Subject" user1@domain.com</code> is not working from the server.could you help me the procedure to generate mail from the server. (2 Replies)
Discussion started by: kpoobathi
2 Replies

9. AIX

VIOS - Error 500: java.lang.OutOfMemoryError

Hey buddies, I'd love to seek and destroy the cause of this error > . < I get this in my browser (Error 500: java.lang.OutOfMemoryError) when I unsuccessfully try to access my Vios - IVM adress :( To recover access to IVM adress I have to enter "oem_setup_env" mode and "kill -9 java's... (3 Replies)
Discussion started by: Xscaio
3 Replies
RHINO-JSC(1)						      General Commands Manual						      RHINO-JSC(1)

NAME
rhino-jsc - invokes the rhino JavaScript compiler SYNOPSIS
rhino-jsc [options] file1.js [file2.js...] DESCRIPTION
This manual page documents briefly the rhino-jsc command. This manual page was written for the Debian distribution because the original program does not have a manual page. It is written according to the html documentation. rhino-jsc is a start script for the rhino JavaScript compiler. The JavaScript compiler translates JavaScript source into Java class files. The resulting Java class files can then be loaded and executed at another time, providing a convenient method for transferring JavaScript, and for avoiding translation cost. Note that the top-level functions available to the shell (such as print) are not available to compiled scripts when they are run outside the shell. OPTIONS
-extends java_class_name Specifies that a java class extending the Java class java_class_name should be generated from the incoming JavaScript source file. Each global function in the source file is made a method of the generated class, overriding any methods in the base class by the same name. -implements java_intf_name Specifies that a java class implementing the Java interface java_intf_name should be generated from the incoming JavaScript source file. Each global function in the source file is made a method of the generated class, implementing any methods in the interface by the same name. -debug, -g Specifies that debug information should be generated. May not be combined with optimization at an optLevel greater than zero. -nosource Does not save the source in the class file. Functions and scripts compiled this way cannot be decompiled. This option can be used to avoid distributing source or simply to save space in the resulting class file. -o outputFile Writes the class file to the given file (which should end in .class). The string outputFile must be a writable filename. -opt, -O optLevel Optimizes at level optLevel, which must be an integer between 0 and 9. -package packageName Specifies the package to generate the class into. The string packageName must be composed of valid identifier characters optionally separated by periods. -version versionNumber Specifies the language version to compile with. The string versionNumber must be one of 100, 110, 120, 130, or 140. See JavaScript Language Versions for more information on language versions. EXAMPLE
Example compiling the NervousText.js applet written in JavaScript. The example is provided in the librhino-java-doc package. $ rhino-jsc -extends java.applet.Applet -implements java.lang.Runnable NervousText.js SEE ALSO
The online documentation under http://www.mozilla.org/rhino/jsc.html AUTHOR
This manual page was written by Wolfgang Baer <WBaer@gmx.de>, for the Debian project (but may be used by others). February 12, 2005 RHINO-JSC(1)
All times are GMT -4. The time now is 01:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy