Java.lang.ClassFormatError

296 byte By Hen79a at 2007-9-28 13:05:02
I am getting following error:"Java.lang.ClassFormatError: (package)/(method)(Code of a method is longer than 65535 bytes)"The method only contains a matrix (500x500), which is returned to the main class for further calculations...Does anyone know what I can do?

dreaded classpath

1099 byte By rayjavaha at 2007-9-28 13:09:31
Hello, I am desperately needing help with the classpath. I have installed j2sdk1.4.1_01 on to my c: drive (windows 2000 advanced server). I then created a directory called c:\Java\Projects\"all.java files"I also created a directory called c:\classes\Java\Projects\"all.class files" The reason ...

could not find the main class

1335 byte By jyahmeda at 2007-9-28 13:21:51
I have just finished my program. All waht | was doing in the 2 weeks before is only to make an executable jar file for my program. Beacuse I should submit it to my advisor in the university as early as possible.But I will get crazy...because of this message "Could not find the main class".I ...

could not find the main class

1335 byte By jyahmeda at 2007-9-28 13:21:52
I have just finished my program. All waht | was doing in the 2 weeks before is only to make an executable jar file for my program. Beacuse I should submit it to my advisor in the university as early as possible.But I will get crazy...because of this message "Could not find the main class".I ...

Build "static" jar

407 byte By erwanha at 2007-9-28 13:23:29
Hi,I'd like to build a minimal sized "static" jar. That means a jar that wouldn't need any other jar in the classpath to be present, because it already includes all it needs.Like building a static executable in C which include all dlls and only needed dlls.It s definitely possible to do that ...

java.lang.Error: Fatal: Resource for compiler is missing

2328 byte By durandmda at 2007-9-28 13:45:36
I am running Linux and this is the command I use to compile a sample program from the sun's tutoriala class is created in spite of the error but running it as $ java framedemo it returns the error:Exception in thread "main" java.lang.NoClassDefFoundError: FrameDemo$ javac -verbose -classpath ...

'javac' not recognised.....

649 byte By ohsuitsyoua at 2007-9-28 14:01:50
I have installed J2SE 1.4, and Tomcat Server 3.2.1 and now I am trying to compile a java program (located in the Jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF directrory). I believe that I have set up the CLASSPATH, PATH, JAVA_HOME and TOMCAT_HOME environ variables correctly. The thing is when I ...

Classpath in Linux and mysterious results.

1508 byte By saxelsena at 2007-9-28 14:02:06
I've recently installed Linux (Redhat 8.0) and wanted to use this platform instead of Windows when programming using Java (version 1.4.1_02) In a setup file I've added the following export CLASSPATH = /usr/j2sdk1.4.1_02/bin (The main directory of my java files)Upon compiling the following ...

Third-Party Complier in J++

263 byte By watertownjordana at 2007-9-28 14:02:10
I will post this in a few forums for better results.I have Visual J++ 6.0 (and Visual Studio.NET), I want to use all of the new J2SE 1.4.1 APIs, but the J++ Complier is only 1.2-compliant. Does anyone know how to have J++ use a third-party complier?

Compiling with the -g option?

383 byte By mightymightyeddturnipa at 2007-9-28 14:02:38
Hi there,yeah, I would like to know if it is possible to tell if a class file has been compiled with the -g option. I would like to do this since I am writing a debugger that requires java files that have been compiled with this option - in order to access debugging information; and without it ...

Problems with javax.swing.* (Linux)

847 byte By saxelsena at 2007-9-28 14:07:31
I'm using RedHat 8.0 and I've installed j2sdk.1.4.1_02. My classpath has been set to /usr/lib/j2sdk/bin:/usr/lib/j2sdk/src.zip(I've carefully followed instructions listed in other topic in this forum.). Now I compile the folling file:/*.....................................*/import ...

another "newbie" - cannot compile

771 byte By KristineOa at 2007-9-28 14:11:37
I am totally new to java...I have read a lot of the previous postings to try to sort this out, but I cannot seem rectify my problem (I think it has something to do with the fact that I don't know what I am doing!)I cannot compile - and get the error msg 'javac; is not a regcognised as an ...

Creating a java executable

148 byte By kupeka at 2007-9-28 14:30:25
Hi, I want to compile a java program to create an executable in Linux. How can I do that? Is there a switch or something of the sort? Thanks.

resolving type names during compilation

625 byte By al_bagehota at 2007-9-28 14:35:28
Hi,I have a question about how the default (or any other) java compiler resolves type names when compiling several files. How does the compiler _efficiently_ organise itself so that it can resolve type names that it has not yet parsed?take a trivial example://file a.javaclass a{b myB;}//file ...

beginner 'running' problem

1571 byte By righteousravena at 2007-9-28 14:44:56
i am trying to use a class, FontChooser, from package org.compiere.plaf. The class is stored in c:\compiere.jar.I have import org.compiere.plaf.*; at the top of my class (FontChooserTest.java).my class compiles with: javac -classpath c:\compiere.jar c:\FontChooserTest.javahowever it gives me a ...

Executable jar can not run properly away of the program package

357 byte By jyahmeda at 2007-9-28 14:48:55
I made a jar file for my program package.when the jar file is saved under the same path of my program package,the jar file works properly.But when the jar file is saved under another path, it works without showing or using all the other files that the package has like the images, text files and ...

NoClassDefFoundError

647 byte By BadLandsa at 2007-9-28 15:22:53
Hi all,Sorry to bother you with something as trivial as this but I have been working on this for 2 hours and it just WON'T WORK !!Here goes :I created (for test reasons as it wasn't working with my proper application) a HelloWorld.java file situated in the root of my filesystem (i.e. ...

"Recursive" Compilation

660 byte By ronniebahlstena at 2007-9-28 15:24:59
Hi!Is there an option with JAVAC that could compile a entire directory tree with its java sourcefiles?I've searched the net and all I can find is information on how to compile sourcefiles specified in a @file.While it's easy to do that, I'm not interested in writing that file consisting of ...

Compiler Crashes!!

2916 byte By ballerinaclairea at 2007-9-28 15:25:29
Hi, I'm using J2sdk1.4.1 on Windows XP pro. When I compile my code, the compiler crashes! It seems to work sometimes, and not others, and I think it tends to crash when I'm importing and using items from javax.swing.*Here's what comes up when I try to compile:C:\Documents and ...

Compile classes in a package

345 byte By podollb1977a at 2007-9-28 15:36:08
Hi,If I have a class in a package and I use the command prompt to get to the directory where it is located what is the syntax I need to compile and run it? I have tried for example:javac MyClass.javajava MyClassBut since it is in the package that normal syntax fails? What is the ...

JVM needed

229 byte By Nita_aua at 2007-9-28 15:42:25
When i try and complie a java file, it comes up and tells me that it cant find the JVM and that it wont work. Help, it seems im having an never ending number of problems, and i havent even compiled anything yet.Nita

Javac maximum number of errors

361 byte By jspflya at 2007-9-28 15:43:49
Hello,I have a need to be able to specify a a command line argument to "javac" so that it will output more that it's default 100 errors.By default once javac encounters 100 compile errors, compilation stops, I need to be able to increase or disable the 100 compile error limit.Could anyone be ...

error compiling [java.lang.NullPointerException]

971 byte By shirza at 2007-9-28 15:45:26
Exception: java.io.IOException: CreateProcess: javac -d C:\j2sdk1.4.1_02 C:\\SimpleCalculator.java error=2at com.elixirtech.ide.build.AbstractBuildStep.addErrors(Unknown Source)at com.elixirtech.ide.build.JavaBuildStep.build(Unknown Source)at ...

Problem Compile....JDK1.2.1

456 byte By Alexykta at 2007-9-28 15:54:20
i'm a new java user, had recently installed JDk1.2.1 on Window 98. i'm facing problem when compiling the coding that i wrote. The massage "This program has perform illegal operation and will be shut down".But when i install the same s/w and compile the same coding on my friend PC which also ...

Can platform specific JVM improves performance?

458 byte By JoshiYa at 2007-9-28 16:03:20
Hi ,My application involves real time message update at the client side.I am using Java Swing as my thicl client. Performance is of great concern to me.Our application is intended for the users with predefined set of hardware profile. They all are going to use Windows environment at client ...

Compilation Error

721 byte By asiya1a at 2007-9-28 16:14:26
Hi,I'm using jdk1.2.2 on Windows XP. I am working on a program which uses the concept of 'extensiblity'(Enheritance). I have all my classes on the same directory. But, when i try to compile a class which contains the word 'extend', it gives me compilation error, saying that it cannot find ...

java.exe error

275 byte By asiya1a at 2007-9-28 16:23:27
Hi, when i try to compile my program, i am getting this error:"javac.exe has encountered a problem and needs to close. We are sorry for the inconvenience."Can someone please tell me, where this error is coming from? And how to fix it.Thanks

compiling

288 byte By dinkovia at 2007-9-28 16:31:21
Hi I'm new with java, i instaled 1.4.1_02 on XP,when i run the HelloWorldApp i recived error:cannot read:HelloWorldApp.javai try with "set CLASSPATH=","setting PATH var." but without any resultSeem to me that my javac don't workPlease sombody help me!

J2ME compiling

331 byte By littlevitoa at 2007-9-28 16:40:10
Any time I try to compile a MIDP application (I tested with the hello-world sample from Sun in the Forte IDE), I get the following Error: [0:0] Cannot compile. Preverify Compiler uses an invalid emulator.Any hints as to what this means and how to fix it would be greatly appreciated. Thank you ...

IDE debugging, DUkes available

98 byte By kiviwaa at 2007-9-28 16:43:43
http://forum.java.sun.com/thread.jsp?forum=54&thread=378089&tstart=30&trange=15

JWSDP Compile Problem

3650 byte By rhrembisha at 2007-9-28 16:54:15
I recently installed the Java Web Services Developer Pack and added the following to the Environment variables on my Windows NT control panel: CLASSPATH:d:\jwsdp-1_1\common\lib\servlet.jar;PATH:d:\jwsdp-1_1\jakarta-ant-1.5.1\bin; ...

compiling but could not run the program

573 byte By RajVRa at 2007-9-28 16:58:23
I have installed j2sdk 1.4.0 on windows 98 .Classpath and path r set correctly .the program is getting compiled when i sayjavac ex.javabut the problem is i could not get the output when i run the program which was a simple one "Hello world". It is aying " can't find ex.class while it is ...

"cannot resolve symbol" help..

719 byte By owenknootea at 2007-9-28 17:04:02
Here is a very short and simpel program that won't compile after I reinstalled java on my computer.import java.lang.Math.*;import java.awt.*;public class PiTest extends Frame {public static void main(String[] p){System.out.println("testing MATHs");System.out.println(""+sin(10));}}I get the ...

Error message when compiling

551 byte By mazarataa at 2007-9-28 17:04:39
HelloI am totally new to Java, but very fascinated. My first attempts however have failed and I do not know why:When compiling like:javac SystemInfo.javaI get following Error Message:Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/MainMy OS is Windows XP and I am ...

is not public in empty package; cannot be accessed from outside package

1247 byte By henrysitua at 2007-9-28 17:17:11
Hi all,would you give me some pointers on this compilation error that I'm getting. Class A wants to instantiate objects belonging to Class T27.The source code for A.java is:package mypkg;import T27;public class A {public A(){System.out.println("inside A:constructor");}public static void ...

Exception in thread "main" java.lang.NoClassDefFoundError: ...

788 byte By mazarataa at 2007-9-28 17:23:31
Again I come back with the same Problem (also see Topic "Error message when compiling"):Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/MainAfter downloading again j2sdk-1_4_1_02-windows-i586 and re-installing Java with the new download, I still have the same ...

Registry key has value 1.3 but 1.2 is required

690 byte By wmdrumaizia at 2007-9-28 17:30:44
Hi there, I'm a new member and very new with Java. I got an error while compiling my code:-->C:\javawork>java test1Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'has value '1.3', but '1.2' is required.For your information I'm using 1. jdk 1.3.1_07 ...

Windows 2000 Professional runtime error

1294 byte By royalmaila at 2007-9-28 17:42:19
I have being developing using java j2sdk1_3_Orc3win full version from 23/04/00 using Windows98SE:From 29/03/03 I have up graded to Microsoft Professional Windows 2000 [Version 5.00.2195]and I am using NTFS.Java 2 runtime Environment SE v1.4.1_02.Java 2 SDK SE v1.4.1_02.C:\>javac Welcome2 ...

problem compiling classes in seperate files

698 byte By fab123a at 2007-9-28 17:44:59
HiMy java compiler was working fine ntil a couple of days ago but now every time a compile a java file that class another class which is located in a different file a get an errorfabtest.java:5: Class fabtest2 not found in type declaration.fabtest2 fabio = new fabtest2();^fabtest.java:5: Class ...

help me with this code..

722 byte By NicolaeDa at 2007-9-28 17:49:35
I have a Perl script that calls the java compiler.. !#/usr/local/bin $classpath = "/pub/lms/parser/class_file"; $application = "hello"; exec("java -classpath $classpath $application");this is a test..;I tried to launch from the browser(clicking on a submit button) the helloworld aplication ...

JAVA to C or C++ Compiler needed

266 byte By pradeep_029a at 2007-9-28 18:01:14
hello friends can u help me how to convert a java program to C or C++ or assembly program .I have tried Harrissa,toba and JCC they are running properly if anyone has used it please inform me and help me how to do this .. my email is pradeep_029@rediffmail.com

how to make an EXE file?

141 byte By glazberga at 2007-9-28 18:01:31
i know it's against the whole idea of java, but for better preformance i want to create an execute file.is that even possible?

Need help compiling external jar files into my one jar file from cmd line

2555 byte By rocketguya at 2007-9-28 18:13:13
Here is my problem, let me see if I can explain it right:I am making a jar file on my development computer that will run my java project. In this java project, it references a couple Java3D jar files. On my development computer, I create the jar file and it runs correctly, but when I move that ...

Compiling problem on Dell laptop using XP

1012 byte By beech137a at 2007-9-28 18:16:35
Just got new laptop. I have downloaded J2SDK 1.4.1 and 1.4.1_02. After trying both of these and failing, I turn to you all. I installed with no problem. Set Classpath as such: PATH=C:WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common FIles\Adaptec ...

quick question

871 byte By cantcinsidea at 2007-9-28 18:20:53
helloi am new to java and im starting out by reading sams teach yourself java in 21 days for a a basic foundation. i ran into problems early when trying to excecute the simple HelloWorld.java program from a dos prompt.when entering the command javac HelloWorld i get the following errorjavac is ...

cant compile

807 byte By cantcinsidea at 2007-9-28 18:22:01
line 5 is saying balleau can't resolve symbolline 19 is saying '}' expectedim using java 2 sdk 1.4 and dos prompt but im using an example from a book that used jdk 1.2please review the code and see if you see the problem, thanks alotclass Jabberwock {String color;String sex;ballean ...

help me, please.. Logon.java error..

581 byte By jayizaa at 2007-9-28 18:29:13
I have taken the whole source code from http://www.webdevelopersjournal.com/articles/logon/xml_jsp_logon.html.Im using Tomcat and xml database. I have installed j2sdk1.4.1_02 and Tomcat 4.1. But when I tried to compile the logon.java, i receive errors: "package javax.servlet does not exist; ...

Compilation troubles in linux.

689 byte By geoffreyawhitea at 2007-9-28 18:39:37
Hi All,I have some codepackage stuff.good;public class Stuff{private MoreStuff moreStuff;public Stuff(){}}The class MoreStuff is not defined in a package so I have just included the directory it is found in, in the -classpath variable passed to javac.unfortunately when I javac -classpath ...

editing java files

203 byte By jlefty38a at 2007-9-28 19:02:33
I am in the command prompt and I can compile and run java files fine but I want to change something, is there an easy way to get to the file from the windows command prompt, sorry I am a new user.

A EXE Program ?

335 byte By alexi02a at 2007-9-28 19:14:12
Hi,I am new to Java and would like to make an EXE file from either a .java file or a .class file.I have tried that program called Java2Exe and JET but they doesn't work properly.All I want to do is just select one .java or .class file and have a program convert it to an exe ...