Jbuilder produced class files?

I have a problem converting class files produced by JBuilder IDE (v 6.0). The converter reports the following error:
"Missing static field initializer in field XYZ", where XYZ is declared in the source as:
final static byte XYZ = (byte)0;
If I declare it non-zero or remove the static keyword the converter accept the produced class files. Any ideas?
Regards,
Jonas

Hi all!
I also have the same problem like Jonas', even I have compile my program both with JDK-1.3.1-b24 dan JDK-1.2.2_010, but it still produces the same error in converting phase. It comes like this:
peserta.jpr activated.
--> ProjectEditor output : C:/Applet/peserta.gxp configured
GemXpressoProject C:/Applet/peserta.gxp defined.
peserta.jpr // C:/Applet/peserta.gxp closed.
no project activated.
peserta.jpr activated.
--> Converter output : ====================================================================
--> Converter output : Conversion in progress ...
--> Converter output : Converter JC2.1 SUN Converter (version 1.0) Result on card GXP211_PK_IS :
--> Converter output : Java Card 2.1 Class File Converter (version 1.0)
   Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.
   parsing C:\Applet\applet\peserta\applet\peserta\appletPeserta.class
   parsing C:\Applet\applet\peserta\applet\peserta\constPeserta.class
   converting applet.peserta.constPeserta
   converting applet.peserta.appletPeserta
   parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacard\framework\javacard\framework.exp
   parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacard\security\javacard\security.exp
   parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\java\lang\javacard\lang.exp
   parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacardx\crypto\javacard\crypto.exp
   writing C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.exp
   writing C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca
   conversion completed with 0 errors and 0 warnings.
--> Converter output : JC2.1 SUN Converter (version 1.0) process is completed
--> Converter output : JCASM program result on card GXP211_PK_IS :
--> Converter output : Java Card 2.1 CAP File Builder (version 1.0)
   Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.
   %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/INS_AUTHENTICATE declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 309.
   %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/P1_RUJUKAN_ID declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 332.
   %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/CLA_SELECT declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 376.
   %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/P2_SELECT declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 379.
--> Converter output : **********************************************************************
--> Converter output : * WARNING ! Exit Value for JCAsm process = 4
--> Converter output : **********************************************************************
--> Converter output : Converter SAP Converter (version 1.0) Result on card GXP211_PK_IS :
--> Converter output : SAP file : C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.sap done
--> Converter output : SAP Converter (version 1.0) process is completed
--> Converter output : conversion End.
--> ComputeSize output : ====================================================================
--> ComputeSize output : Gemplus CapFile Tool (copyright (C) Gemplus 1999)
--> ComputeSize output : -> Compute the memory Size :
--> ComputeSize output : C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jar not found. File ignored.
--> ComputeSize output : Load JAR file error in Compute Size module for C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jar
--> ComputeSize output : Compute memory Size completed.
--> ProjectEditor output : C:/Applet/applet/peserta/peserta.gxp configured
GemXpressoProject C:/Applet/applet/peserta/peserta.gxp defined.
--> Converter output : ====================================================================
--> Converter output : Conversion in progress ...
--> Converter output : Converter JC2.1 SUN Converter (version 1.0) Result on card GXP211_PK_IS :
--> Converter output : Java Card 2.1 Class File Converter (version 1.0)
   Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.
   parsing C:\Applet\applet\peserta\applet\peserta\appletPeserta.class
   parsing C:\Applet\applet\peserta\applet\peserta\constPeserta.class
   converting applet.peserta.constPeserta
   converting applet.peserta.appletPeserta
   parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacard\framework\javacard\framework.exp
   parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacard\security\javacard\security.exp
   parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\java\lang\javacard\lang.exp
   parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacardx\crypto\javacard\crypto.exp
   writing C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.exp
   writing C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca
   conversion completed with 0 errors and 0 warnings.
--> Converter output : JC2.1 SUN Converter (version 1.0) process is completed
--> Converter output : JCASM program result on card GXP211_PK_IS :
--> Converter output : Java Card 2.1 CAP File Builder (version 1.0)
   Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.
   %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/INS_AUTHENTICATE declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 309.
   %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/P1_RUJUKAN_ID declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 332.
   %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/CLA_SELECT declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 376.
   %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/P2_SELECT declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 379.
--> Converter output : **********************************************************************
--> Converter output : * WARNING ! Exit Value for JCAsm process = 4
--> Converter output : **********************************************************************
--> Converter output : Converter SAP Converter (version 1.0) Result on card GXP211_PK_IS :
--> Converter output : SAP file : C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.sap done
--> Converter output : SAP Converter (version 1.0) process is completed
--> Converter output : conversion End.
--> ComputeSize output : ====================================================================
--> ComputeSize output : Gemplus CapFile Tool (copyright (C) Gemplus 1999)
--> ComputeSize output : -> Compute the memory Size :
--> ComputeSize output : C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jar not found. File ignored.
--> ComputeSize output : Load JAR file error in Compute Size module for C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jar
--> ComputeSize output : Compute memory Size completed.Any suggestion? Thanks before :)

Similar Messages

  • Unable to produce .class file

    Hi All!
    Please read the code as follows in my last question.
    class BicycleDemo {
    public static void main(String [] args) {
    // Create two different Bicycle objects
    Bicycle bike1 = new Bicycle ();
    Bicycle bike2 = new Bicycle ();
    // Invoke methods on these objects
    bike1.changeCadence (50);
    bike1.speedUp (10);
    bike1.changeGear (2);
    bike1.printS

    stop making new threads!

  • Run app with Class Files from JBuilder

    Hi,
    I have Java class files (at this point no java source code/files).
    How can I run the application from JBuilder with these class files.

    Thank you Annie.
    I want to run JBuilder in debug mode.
    Basically my application connects to the Sybase db. It will get some data from tables. But when I am running my app in debug mode ... I am hoping that it will show me the data. I dont see any data from the db tables.
    Do I need to setup anything else to see what data it is selecting through JBuilder

  • How do i compile a class file to become an exe (application file)

    I know jbuilder and other 3 rd party software are able to to that. I just want to know whether jdk1.3 compiler able to do it...

    Hm ...
    if you think of a compiler producing an executable file, this means, the application is compiled, linked and bound at file-level - what about the features of loading and linking classes during runtime or the ability to replace class files during runtime and load/link it dynamically?- Guess, a compiler for java can compile static applications, which need no dynamic linking of classes, but is it also able to keep this functionality of java this way?- I don't think so (but I never tested one of these compilers).
    greetings Marsian

  • How to convert java .class file to .dll file

    hi,
    I got a problem, I have to convert my java .class file to .dll file. Microsoft VC++ program will invoke the converted .dll file.
    Is there any other possibility.
    I was confused.
    Cam any body help me. If you are having solution for the can you send to my [email protected] account.
    thanks,

    No, it is not possible to do what you are suggesting. Yes, you could produce a DLL that wraps the JVM and loads your java class exposing a C and/or C++ callable interface, but that is a lot to go through unless your class is VERY complex. Otherwise, you might want to just create and maintain two implementations.

  • How to convert .class file to .dll file

    hi,
    I got a problem, I have to convert my java .class file to .dll file. Microsoft VC++ program will invoke the converted .dll file.
    Is there any other possibility.
    I was confused.
    Cam any body help me. If you are having solution for the can you send to my [email protected] account.
    thanks,

    No, it is not possible to do what you are suggesting. Yes, you could produce a DLL that wraps the JVM and loads your java class exposing a C and/or C++ callable interface, but that is a lot to go through unless your class is VERY complex. Otherwise, you might want to just create and maintain two implementations.

  • How do I make a batch file if the .class file uses a foreign package?

    I am trying to make an MS-DOS batch file using the bytecode file from the Java source file, called AddFields.java. This program uses the package BreezySwing; which is not standard with the JDK. I had to download it seperately. I will come back to this batch file later.
    But first, in order to prove the concept, I created a Java file called Soap.java in JCreator. It is a very simple GUI program that uses the javax.swing package; which does come with the JDK. The JDK is currently stored in the following directory: C:\Program Files\Java\jdk1.6.0_07. I have the PATH environment variable set to the 'bin' folder of the JDK. I believe that it is important that this variable stay this way because C:\Program Files\Java\jdk1.6.0_07\bin is where the file 'java.exe' and 'javac.exe' are stored. Here is my batch file so far for Soap:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java Soap
    pause
    Before I ran this file, I compiled Soap.java in my IDE and then ran it successfully. Then I moved the .class file to the directory C:\acorn. I put NOTHING ELSE in this folder. then I told the computer where to find the file 'java.exe' which I know is needed for execution of the .class file. I put the above text in Notepad and then saved it as Soap.bat onto my desktop. When I double click on it, the command prompt comes up in a little green box for a few seconds, and then the GUI opens and says "It Works!". Now that I know the concept of batch files, I tried creating another one that used the BreezySwing package.
    After I installed my JDK, I installed BreezySwing and TerminalIO which are two foreign packages that make building code much easier. I downloaded the .zip file from Lambert and Osborne called BreezySwingAndTerminalIO.zip. I extracted the files to the 'bin' folder of my JDK. Once I did this, and set the PATH environment variable to the 'bin' folder of my JDK, all BreezySwing and TerminalIO programs that I made worked. Now I wanted to make a batch file from the program AddFields.java. It is a GUI program that imports two packages, the traditional GUI javax.swing package and the foreign package BreezySwing. The user enters two numbers in two DoubleField objects and then selects one of four buttons; one for each arithmetic operation (add, subtract, multiply, or divide). Then the program displays the solution in a third DoubleField object. This program both compiles and runs successfully in JCreator. So, next I moved the .class file from the MyProjects folder that JCreator uses to C:\acorn. I put nothing else in this folder. The file Soap.class was still in there, but I did not think it would matter. Then I created the batch file:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java AddFields
    pause
    As you can see, it is exactly the same as the one for Soap. I made this file in Notepad and called it AddFields.bat. Upon double clicking on the file, I got this error message from command prompt:
    Exception in thread "main" java.lang.NoClassDefFoundError: BreezySwing/GBFrame
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Caused by: java.lang.ClassNotFoundException: BreezySwing.GBFrame
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ... 12 more
    Press any key to continue . . .
    I know that most of this makes no sense; but that it only means that it cannot find the class BreezySwing or GBFrame (which AddFields extends). Notice, however that it does not give an error for javax.swing. If I change the "set path..." command to anything other than the 'bin' folder of my JDK, I get this error:
    'java' is not recognized as an internal or external command,
    operable program or batch file.
    Press any key to continue . . .
    I know this means that the computer cannot find the file 'java.exe' which I believe holds all of the java.x.y.z style packages (native packages); but not BreezySwing or any other foreign packages. Remember, I do not get this error for any of the native Java packages. I decided to compare the java.x.y.z packages with BreezySwing:
    I see that all of the native packages are not actually visible in the JDK's bin folder. I think that they are all stored in one of the .exe files in there because there are no .class files in the JDK's bin folder.
    However, BreezySwing is different, there is no such file called "BreezySwing.exe"; there are just about 20 .class files all with names like "GBFrame.class", and "GBActionListener.class". As a last effort, I moved all of these .class files directly into the bin folder (they were originally in a seperate folder called BreezySwingAndTerminalIO). This did nothing; even with all of the files in the same folder as java.exe.
    So my question is: What do I need to do to get the BreezySwing package recognized on my computer? Is there possibly a download for a file called "BreezySwing.exe" somewhere that would be similar to "java.exe" and contain all of the BreezySwing packages?

    There is a lot of detail in your posts. I won't properly quote everything you put (too laborious). Instead I'll just put your words inside quotes (").
    "..there are some things about the interface that I do not like."
    Like +what?+ This is not a help desk, and I would appreciate you participating in this discussion by providing details of what it is about the 'interface' of webstart that you 'do not like'. They are probably misunderstandings on your part.
    "Some of the .jar files I made were so dangerously corrupt, that I had to restart my computer before I could delete them."
    Corrupt?! I have never once had the Java tools produce a corrupt Jar. OTOH, the 'cannot delete' problem might relate to the JRE gaining a file lock on the archive at run-time. If the file lock persisted after ending the app., it suggests that the JRE was not properly shut down. This is a bug in the code and should be fixed. Deploying as .class files will only 'hide' the problem (from casual inspection - though the Task Manager should show the orphaned 'java' process).
    "I then turned to batch files for their simple structure and portability (I managed to successfully transport a java.util containing batch file from my computer to another). This was what I did:
    - I created a folder called Task
    - Then I copied three things into this folder: 1. The file "java.exe" from my JDK. 2. The program's .class file (Count.class). and 3. The original batch file.
    - Then I moved the folder from a removable disk to the second computer's C drive (C:\Task).
    - Last, I changed the code in the batch file...:"
    That is the +funniest+ thing I've heard on the forums in the last 72 hours. You say that is easy?! Some points.
    - editing batch files is not scalable to 100+ machines, let alone 10000+.
    - The fact that Java worked on the target machine was because it was +already installed.+ Dragging the 'java.exe' onto a Windows PC which has no Java will not magically make it 'Java enabled'.
    And speaking of Java on the client machine. Webstart has in-built mechanisms to ensure that the end user has the minimum required Java version to run the app. - we can also use the [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit] on the original web page, to check for minimum Java before it puts the link to download/install the app. - if the user does not have the required Java, the script should guide them through installing it.
    Those nice features in deployJava.js are available to applets and apps. launched using webstart, but they are not available for (plain) Jar's or loose class files. So if 'ensuring the user has Java' is one of the requirements for your launch, you are barking up the wrong tree by deploying loose class files.
    Note also that if you abandon webstart, but have your app. set up to work from a Jar, the installation process would be similar to above (though it would not need a .bat file, or editing it). This basic strategy is one way that I provide [Appleteer (as a downloadable ZIP archive)|http://pscode.org/appleteer/#download]. Though I side-step your part 1 by putting the stuff into a Jar with the path Appleteer/ - when the user expands the ZIP, the parts of the app. are already in the Appleteer directory.
    Appleteer is also provided as a webstart launched application (and as an applet). Either of those are 'easier' to use than the downloadable ZIP, but I thought I would provide it in case the end user wants to save it to disk and transport the app. to a machine with no internet connection, but with Java (why they would be testing applets on a PC with no internet connection, I am not sure - but the option is there).
    "I know that .jar and .exe files are out because I always get errors and I do not like their interfaces. "
    What on earth are you talking about? Once the app. is on-screen, the end user would not be able to distinguish between
    1) A Jar launched using a manifest.
    2) A Jar launched using webstart.
    3) Loose class files.
    Your fixation on .bat files sounds much like the adage that 'If the only tool you have is a hammer, every job starts to look like a nail'.
    Get over them, will you? +Using .bat files is not a practical way to provide a Java app. to the end user+ (and launching an app. from a .bat looks quite crappy and 'second hand' to +this+ user).
    Edit 1:
    The instructions for running Appleteer as a Jar are further up the page, in the [Running Appleteer: Application|http://pscode.org/appleteer/#application] section.
    Edited by: AndrewThompson64 on May 19, 2009 12:06 PM

  • Java .class files low-level (hex) editing?

    Hello, all!
    I have a problem:
    There is an application (namely a J2ME instant messanger for Nokia mobiles). It is a non-commercial application. But unfortunately, there is a bad bug in the application. It is not even a bug, it is more a feature - but it does not support Russian (cyrillic) characters encoding. Russian characters in all incoming messages are displayed with a kind of hierogliphs.
    I wrote to developers (and not only I did - I know at least 3 russian people who also wrote a developer about this) - but unsuccessful. Developer keeps silent.
    So what I decided is to fix the bug by myself :) By decompilation, e t.c.
    Unfortunally, the midlet is hard obfuscated :( So it took me some hours of reading obfuscated code, and now I see some ways which I must try to solve the problem. I think I must write a code which processes the desired String variables (Despite obfuscation, I can see which Strings to process to obtain effect), and inject this code somewhere to be executed, and from where it could reach the desired Strings.
    But the great problem is that obfuscated classes produce a lot of erroneus code, which can not be compiled back. So I decide to reject the decompilation at all, or at least of the big classes (where it is a lot of errors, which I can not correct manually).
    In some moments, the application stores the desired Strings in the java.lang.Hashmap. So if I could place my processing code into the Hashmap methods, then I could easily process what I need.
    Evidently, I can not edit the real basic java classes. But why not to make the applicaton using my class with identical functionality, instead of java.jang.Hashmap?
    My idea now is to edit the .class file of the midlet (yeah, edit with notepad), replacing all the references to "java/lang/Hashmap" or "java.lang.Hasmap" with "java/lang/Fuckmap" and "java.lang.Fuckmap".
    So did I (replaced it in norepad).
    I read the Sun's documentation about .class file structure, and it seems that nothing is against it. There is no encryption, no checksums, e t.c.
    Then I produced "Fuckmap" class this way:
    import java.lang.Hashmap;
    class Fuckmap extends Hashmap {}
    (compiled and preverified it of course)
    And placed it into java/lang folder inside the application jar.
    I instead of working properly, I get the "Application error - invalid constant pool entry"). What do I do wrong?

    2 lexzeus, mlk:
    I understood you.
    I jave just tried it, and used "jaga/util/Fuckmap" (jaga, not java). But still the same ("Invalid constant pool entry). I tried two times (maybe I could make something wrong?), both times took "clean" jar package, e t.c.
    Do you really think jav.alang.Hashmap should help now? I have ony little hope :(

  • *Added* code to existing source file, compiled it, and class file shrunk

    Another newbie here. Fortunately, my classpath is ok, so I'm able to compile a .java file.
    I added one line of code (System.out.println) to write the value of a variable to a log. After compiling with javac, I noticed that the resulting [new] class file was smaller than the existing class file. I looked at each of the class files with Textpad. It's gibberish, but I quickly saw that a large block of code was missing in the new class file, even though the size of the source file had been increased.
    There is a difference, however, between how the two class files were created. The existing class file was compiled (along with many others) by exporting an .EAR file from a development environment (WSAD) to the WebSphere Administrator Console. Conversely, I am now compiling the same source file with javac on my machine.
    I suspect that this is the reason why I can add code to a .java file, compile it, and have the resulting class file actually lose code. Even if I am correct, I don't know what to do about it.
    Does anyone have an idea?
    Regards,
    Daniel T.

    Thank you both for your replies. I've read many posts over the past few months, and I know how important it is to provide as much info as possible, when asking a question here. That said, I have another tasty tidbit...
    After replacing the existing (larger) class file with the new (smaller) class file, my application now produces this:
    "*Error 500: LinkageError while defining class*..." [name of class]
    *"...(Unsupported major.minor version 50.0) This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature. Dumping the current context classloader hierarchy: ==> indicates defining classloader ==>[0] com.ibm.ws.classloader.CompoundClassLoader@6bd156d5 Local ClassPath:"*
    ...[the entire classpath]...
    Original exception--- java.lang.UnsupportedClassVersionError:
    I'm guessing that my focus should mostly be on the 'Original exception', and maybe I need to revisit the JRE or JDK or JVM (these terms are somewhat nebulous to me, so please forgive me using them interchangeably) on my machine. For now, I'll just keep trying stuff. Thanks again for the replies!
    Regards,
    Daniel T.

  • For WebLogic 5.1, where should I put my class files for my JavaBeans?

    With JBuilder4, I have built an application with JSP and a few Java Beans (Those JavaBeans are instantiated in those JSP files). There are no EJBs. The package name is called 'onlinetrade'. I have tested the application on JBuilder's web server, it works pretty well.
    Now I am moving this application to WegLogic 5.1. I have encountered a problem with WebLogic 5.1
    and do not know where I should place my JavaBean class files --
    Originally, the JSP files for my application are in package path-- ..onlinetrade\jsp
    and the class files for my beans are in the package path -- ..onlinetrade\jsp\bean\*.class
    Now, with WebLogic 5.1,
    1) I have put my JSP files in
    C:\weblogic\myserver\public_html\onlinetrade\jsp
    2) I have created subdirectory and put my bean class files in
    C:\weblogic\myserver\classfiles\onlinetrade\jsp\bean
    When I started weblogic and the first page - login.jsp page can be up and accessed. But when I login and forward to another JSP page called 'controller.jsp', where a bean is instantiated, I got the following error
    Compilation of 'C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java' failed:
    C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java:210: cannot access jsp_servlet._onlinetrade._jsp.registerBean
    probably occurred due to an error in /onlinetrade/jsp/controller.jsp line 53:
    registerBean registerBeanInstance = new registerBean();
    I know the javac is working, and a java file is created upon the JSP page, but the problem is -- the bean class files cannot be found!!!
    Where should I create the package path and put my bean class file so that my JSP pages can pick them up?
    Any help is greatly appreciated!
    Thanks.
    --Tim

    I have mine in WEB-INF/classes

  • How to Compile Jsp File in Class File , Protect my JSP from outworld

    Hello Friends
    My name is chandra prakash, I'm new for u. I've develop a web based software completely in JSP, some files are also written in Java Script. This software have aprox. 40 files --> 30 in JSP + 2 in Java Script + 8 image files .
    Each JSP calls another. and run this on 58 clints machine simultaneusly. we used Oracle 9iAS as back end and Oracle9iAS web Server . Where we found less clients like 20-30 we use Tomcat 5.0 web server .Sir problem is this we don't wan't to leave our jsp source code on server.
    Is any method or third party tool by which we can convert our JSP source file in CLASS file as like real class files provide by javac.
    For this perpose we make a folder and put all files in it. Create a context on Tomcat for this folder.Create a data source for this in tomcat. Bcase this program uses Data source and connect many times to database & fetches many type of data from database. We use servlet files of tomcat for this context in WORK folder of Tomcat. and after that rename our Source file Folder. and again run our program through batch file i'm strange program runs 2-3 steps, after few times it start producing errors.
    Sir do u hava work on this field can u help me to protect this JSP source code.
    I've Use Jikes.com compiler but not get any succes, It may be i'm not using correctly .
    Pls sir give me any suggesition.
    Chandra prakash

    1. Highlight your web project or the individual file
    2. Right click
    3. Select Rebuild to build all jsp files or Make to rebuilt only changed files

  • VM crashes with big class files generated of JSPs

              Hi,
              When calling certain JSP pages with WebLogic Server 5.1 (SP 6) the HotSpot Virtual Machine (JDK1.3) crashes with a core dump.
              Using WebLogic as the JSP engine produces of every JSP page one java file which
              is compiled with javac to one class file. Each generated java file consists of
              just one method: _jspService(...){...}. One method is allowed to be of 64 K
              (the dynamic part 32 K as maximum). As we include other JSP pages and
              components and use taglibraries, the WebLogic JSP engine generates a very big
              java file (more than 1 MB). Javac compiles this to a class file which only
              method exceeds the 64 K limit. As the javac compiler does not reject the class
              file with the to big method the virtual machine crashes.
              Running the same JSP page on Windows NT 4 with WebLogic Server 5.1 (Service Pack 6)
              and JDK 1.3 BUT using the java option -classic works.
              Unfortunately it seems that there is no -classic option for java on Solaris for JDK1.3.
              Using JDK1.2 (JDK_1.2.2_05a) on Solaris or the jikes compiler of Jakarta
              causes an exception instead of a core dump but still does not work.
              Using solaris jdk1.2.2_05a the same page request results in the following exception:
              Tue Nov 21 09:08:16 CET 2000:<I> <WebAppServletContext-maxblue> Generated java file:
              /opt/tadevw/maxblue/weblogic/maxblue_cluster/maxblue_server/public_html/WEB-INF/_tmp_war/jsp_servlet/_portfolio/_PortfolioMyportfolio.java
              Tue Nov 21 09:08:24 CET 2000:<E> <WebAppServletContext-maxblue> Servlet failed with Exception
              java.lang.VerifyError: (class: jsp_servlet/_portfolio/_PortfolioMyportfolio, method:
              _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Illegal target of jump or branch
              Is there a way that the JSP engine of WebLogic creates/generates
              more than one function? (Without reengineering of the source code?)
              Regards,
              Boris
              

    Thank you! I had no idea. But what is a FAT32 drive? Is it the work bench in the Mac, that is used for the transfering between the external hard drives? Is there any way around this then?
    I thought in these HD home movie days, that this was an easy thing dealt with everyday. I still need to understand what practical solutions I can find. The files are .mov - quicktime files.
    It couldn't be the case that files larger than 4BG should be locked in the hard drive forever?
    Sverre

  • Securing class files

    Hello,
    I read all these topics about securing class-files,
    and about encryptors and stuff like that
    so I tought this could be possible :
    I've made an application and you can run it by using an exe-file.
    In the same directory you find the class-files.
    Now I archived the class files with winrar, and set a password on it.
    I tried to use the exe-file to run the application, but it can't.
    Obvisiously, it can't find the mainclass.
    So I was wondering if there is a way to make clear to the exe -file, that the main class is in that zip-file, and that you need <this password> to get in to the zip-file.
    I think it's possible, but I don' know how to do it.
    I thought Google would know it, but he don't.
    ...

    The collision wasn't "stumbled" across it was found
    because the researchers
    found a way (from your link) to "reduce the search
    space".I didn't say "the collision was "stumbled" across"...
    >
    This means that, under certain circumstances, inputs
    producing the same hash
    can be found for other inputs + hashes.That is what I said...
    >
    Did you have a look at the PDF ?
    http://eprint.iacr.org/2004/199.pdf
    This doesn't damage the use of MD% for verifyingthat
    file contents are unchanged, so to OP - go aheadand
    use it.Well, it does because it means that there is the
    potential for another
    file that is not the same to return the same
    sum - hence the program
    won't realise the difference.And the situation is no worse now that before the duplication was found. Any encryption/hashing routine can create duplicate hashes - because none of them have an infinitely large numberspace.

  • Class file is being deleted on compiling

    Hi,
    I am new to this forum. I am having problem compiling my code. I have imported a package and when I compile the source code the class file from the package gets deleted and compiler gives me error that noClassDeff found.Could anyone please help me. I would highly appreciate it.
    I have to submit this assignment in 3 days time.

    Thanks for replying
    the code is:
    import aston.net.DatagramMessage;
    import java.io.*;
    import java.util.*;
    import java.net.*;
    public class TCPclient
    public static void main(String args[])
    try
    {I
    netAddress duke = InetAddress.getByName("127.0.0.1");
    DatagramMessage one=new DatagramMessage("here",duke,9001);
    TCPclient.sendString("127.0.0.1", 9001);
    catch (UnknownHostException ex) {
    System.err.println(ex);
    the error i get is:
    Exception in thread "main" java.lang.NoClassDefFoundError: aston/net/DatagramMessage
         at TCPclient.main(TCPclient.java:81)
    the code for DataMessage is:
    package aston.net;
    import java.net.InetAddress;
    * A class to use with MyServerDatagramSocket for
    * returning a message and the sender's address
    * @author M. L. Liu
    public class DatagramMessage{
    private String message;
    private InetAddress senderAddress;
    private int senderPort;
    public DatagramMessage(String message, InetAddress addr, int port) {
    this.message = message;
    this.senderAddress = addr;
    this.senderPort = port;
    public String getMessage( ) {
    return this.message;
    public InetAddress getAddress( ) {
    return this.senderAddress;
    public int getPort( ) {
    return this.senderPort;
    } // end class
    The DatagramMessage compiles and Class file is created but when i use it in TCPClient the class file gets deleted.
    I am using JBuilder and OS is windows XP

  • Class files get smaller with new version of jdk

    Recently I installed jdk1.5.0_02 and after recompiling some of my files, I notices that class files compilied by this version seemed to be smaller that the class files produced by previous versions. I am just curious: why is this? And what part of the class file is decreased (the CodeAttributes or the Constant Pool)?
    Thanks.

    "Some import operations were not performed.
    The following files were not imported bc they could not be read. (1)"
    This is after just trying to import one but I get the same message when I try to import more than one. Thanks for any ideas.

Maybe you are looking for

  • Java not working properly

    I have noticed that when trying to use some applications or games online using java, for example runescape, the window stays black with a little java icon in the middle. At the beginning i thought that this meant it was loading but after 10 minutes o

  • Firmware upgrade for an Ipod

    I have a 30GB Ipod with color dispay. Is there a way to upgrade the firmware on this Ipod so that it will play video, etc. like the Fifth Generation Ipods? Thank You

  • HT5312 How to reset my security question(s); I am still not clear on the explanation given

    How to reset my security question(s); I am still not clear on the explanation given

  • Activate ODS

    Hi All I made the mistake of removing the BEX Reporting indicator from an ODS because the reports were being run off a Multiprovider rather than the ODS I thought this would improve load performance. There are roughly 12m records that we've split up

  • Fios availability in my building, 11220

    When will Fios be connected to the building I live in, I received an email in January 2014 that Verizon is going to connect the Fios service within 6 month. It's now August and no Fios service, I also have a support ticket {edited for privacy} from m