473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem with java under linux

Ciao,

I need to start a java form compiler from linux.
The script that comes with the program simply says (after some
checks):

java -classpath Packager.jar:Filler.jar -jar EPT.jar

However, if I run it, I get:

java version "1.2"
gij (GNU libgcj) version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: EPT.jar
at 0x40267aab: java.lang.Throwable.Throwable(java.lang.String)
(/usr/lib/./libgcj.so.3)
at 0x40259640: java.lang.Error.Error(java.lang.String)
(/usr/lib/./libgcj.so.3)
at 0x4025b440: java.lang.LinkageError.LinkageError(java.lang.Stri ng)
(/usr/lib/./libgcj.so.3)
at 0x4025cad0: java.lang.NoClassDefFoundError.NoClassDefFoundErro r(java.lang.String)
(/usr/lib/./libgcj.so.3)
at 0x402b184f: gnu.gcj.runtime.FirstThread.run()
(/usr/lib/./libgcj.so.3)
at 0x4024cfbc: _Jv_ThreadRun(java.lang.Thread)
(/usr/lib/./libgcj.so.3)
at 0x40219cdc: _Jv_RunMain(java.lang.Class, byte const, int, byte
const, boolean) (/usr/lib/./libgcj.so.3)
at 0x08048920: ?? (??:0)
at 0x406ad7f7: __libc_start_main (/lib/i686/libc.so.6)
at 0x080486c1: ?? (??:0)

I guess that the error is in the fact that the command is ignoring the
-jar option, so that the EPT.jar is not read.
Java version and linux system are written on the log. How should I
translate the command line to get it working?

Thanks,

Stefano
Jul 17 '05 #1
2 3057
Stefano Bianchi wrote:
I guess that the error is in the fact that the command is ignoring the
-jar option, so that the EPT.jar is not read.
Java version and linux system are written on the log. How should I
translate the command line to get it working?


Do you have any special reason for using GCJ? I'd strongly suggest
going and downloading Sun's JDK v1.4.2 for Linux if you don't.

If you do have Sun's Java installed, check your PATH statement, and
ensure that the path to Sun's Java appears before the GCJ Java Runtime
(use "which java" to find out).

HTH!

Brad BARCLAY

--
=-=-=-=-=-=-=-=-=
From the OS/2 WARP v4.5 Desktop of Brad BARCLAY.
The jSyncManager Project: http://www.jsyncmanager.org

Jul 17 '05 #2
Thank you Brad!

I had Sun java installed, but it was not in my path.
I simply changed the script to run the Sun java bin instead of gjc and it works!
Maybe I should replace Sun java to gjc as a default...

Stefano
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pepegan | last post by:
I'm a newbie in the RMI programation. I downloaded the sample code in Java tutorial in java.sun.com and tried to compiled it. First, I compiled the interface class and was going to compile the...
4
by: inquirydog | last post by:
Hello- I, the inquirydog, would like to solicit suggestions for a new web page I am making: I am creating a simple website that will translate concepts between windows os's, Linux, and the...
3
by: MJ23 | last post by:
Dear all, I have treid to install Oracle 8.1.7 enterprise on Linux Redhat 8 and 9 version. However, both of the linux version has the same problem. It said cannot initialize VM or say waiting...
0
by: Jeff O | last post by:
I am able to ping both directions from a Linux box to a WinXP box, but when I try to connect to MySql running on the Linux box using SQuirreL (a java-based isql tool) using Connector/J 2.0.14 I'm...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
7
by: Alex | last post by:
Hi all, I am trying to install a java stored procedure via the windows development centre. The linux box is running 8.1 FP4 as is the windoze platform. If I am on the linux box i can install...
8
by: Xela | last post by:
Hi A have a very annoying problem. I have written java strored procedures for DB2 v8.1. Their deployement and usage is fine as long as the server is a Windows one. But under Solaris 8 and Linux...
12
by: Henryk | last post by:
Hey there, I have some problems with the following code snippet on a Virtex-4 PowerPC with a GCC based compiler char chData; sprintf(&chData, "%+05.0f", -0.038f); --I get "-000" ???...
2
myusernotyours
by: myusernotyours | last post by:
Hi All, Am working on a Java application in which I have to use the JNI to Interface with some native code for both windows and unix. Am using netbeans IDE with the C/C++ pack installed. Am also...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.