Ojc will compile the following class. A bug?

I thought that in Java classes cannot be declared protected. ojc will however compile the following class:
protected class aclass
The Sun java compiler prints the following error:
aclass.java:1: modifier protected not allowed here
protected class aclass
Is this a known bug in the Oracle Java compiler?

Yes, it seems we have a little bug in OJC, the protected access modifier should only be allowed for member classes. I filed a bug report and I'll fix it.
Thanks!
Keimpe Bronkhorst
JDev Team

Similar Messages

  • [svn:fx-trunk] 16929: Add a [Mixin] class that will register the required class aliases in the event the mxml compiler generation   [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework .

    Revision: 16929
    Revision: 16929
    Author:   [email protected]
    Date:     2010-07-15 07:38:44 -0700 (Thu, 15 Jul 2010)
    Log Message:
    Add a class that will register the required class aliases in the event the mxml compiler generation  [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework.
    Add a reference to this class in the RPCClasses file so it always gets loaded.
    QE notes: Need a remoting and messaging regression test that doesn't use Flex UI.
    Bugs: Watson bug 2638788
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/RPCClasses.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as

    Great exercise to document the problem like this.  It got me thinking about how an app with modules would be different from an app that does not use modules.  Solution: I moved the dummy reference of PersonPhotoView out to the main application file (as opposed to being inside the module) and it worked.  I've probably been lucky not to have experienced this problem earlier, because for most other entities I have an instance attached to my model which is linked / compiled with the main application.

  • Unable to compile the java class in the SQL PLUS

    Hi Team,
    I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
    But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
    What to do for this for your reference ,Attaching the java class file.
    “ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
    Was expecting one of:
    ----------------------Here is the Java class Code.....................
    create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
    as
    import java.math.BigDecimal;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import java.sql.*;
    import java.io.*;
    public class XXVM_ZipFileUtil_Ela
    public static oracle.sql.BLOB getZipFile(
    oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
    int fileBufferSize, int zipFileBufferSize,
    boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
    throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
    String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
    String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
    String zipPathAndFileName = new String(
    new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
    new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
    byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
    try
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
    String[] fileNamesString = (String[])fileNames.getArray();
    BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
    ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
    zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
    for (int i = 0; i < fileNamesString.length; i++) {
    System.out.println(i);
    zipOut.putNextEntry(new ZipEntry(fileNamesString));
    InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
    int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
    zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
    zipOut.closeEntry();
    zipOut.close();
    byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
    FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
    int byteCount = zipIn.read(zipFileContents);
    zipIn.close();
    byte returnFileContents[] = new byte[byteCount];
    System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
    String returnFileContentsString = new String(returnFileContents);
    if (deleteZipFile)
    boolean deletedFile = (new File(zipPathAndFileName)).delete();
    oracle.sql.BLOB returnFileContentsBLOB = null;
    returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
    returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
    //OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
    OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
    tempBlobWriter.write(returnFileContents);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    returnFileContentsBLOB.close();
    return returnFileContentsBLOB;
    catch (IllegalArgumentException ex) {
    ex.printStackTrace();
    throw ex;
    catch (FileNotFoundException ex) {
    ex.printStackTrace();
    throw ex;
    catch (IOException ex)
    ex.printStackTrace();
    throw ex;
    catch (java.sql.SQLException ex)
    ex.printStackTrace();
    throw ex;

    860411 wrote:
    Hi Team,
    I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
    But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
    What to do for this for your reference ,Attaching the java class file.
    “ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
    Was expecting one of:
    I believe the error message is clear and self-explanatory.
    ----------------------Here is the Java class Code.....................
    create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
    as
    import java.math.BigDecimal;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import java.sql.*;
    import java.io.*;
    public class XXVM_ZipFileUtil_Ela
    public static oracle.sql.BLOB getZipFile(
    oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
    int fileBufferSize, int zipFileBufferSize,
    boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
    throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
    String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
    String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
    String zipPathAndFileName = new String(
    new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
    new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
    byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
    try
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
    String[] fileNamesString = (String[])fileNames.getArray();
    BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
    ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
    zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
    for (int i = 0; i < fileNamesString.length; i++) {
    System.out.println(i);
    zipOut.putNextEntry(new ZipEntry(fileNamesString));
    InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
    int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
    zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
    zipOut.closeEntry();
    zipOut.close();
    byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
    FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
    int byteCount = zipIn.read(zipFileContents);
    zipIn.close();
    byte returnFileContents[] = new byte[byteCount];
    System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
    String returnFileContentsString = new String(returnFileContents);
    if (deleteZipFile)
    boolean deletedFile = (new File(zipPathAndFileName)).delete();
    oracle.sql.BLOB returnFileContentsBLOB = null;
    returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
    returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
    //OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
    OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
    tempBlobWriter.write(returnFileContents);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    returnFileContentsBLOB.close();
    return returnFileContentsBLOB;
    catch (IllegalArgumentException ex) {
    ex.printStackTrace();
    throw ex;
    catch (FileNotFoundException ex) {
    ex.printStackTrace();
    throw ex;
    catch (IOException ex)
    ex.printStackTrace();
    throw ex;
    catch (java.sql.SQLException ex)
    ex.printStackTrace();
    throw ex;
    The last two lines above should be
    /Srini

  • How to compile the Java classes generated in JAXB

    I am using Windows 2000 Operating System. I found a xjc
    batch file on the sun's java forum.
    I used that to generate classes from XML. After generating
    the classes I could not compile
    the classes each depends on other AND THEY REQUIRE BOTH
    CLASS FILES.
    I will attach the schema file and dtd . Can you explaine me the problem.
    #<transactions.dtd>
    <?xml version="1.0" encoding="UTF-8"?>
    <!ELEMENT transactions (cardtocard*)>
    <!ELEMENT cardtocard (tocard, fromcard, fromcardver, amount, transdate, transid)
    >
    <!ELEMENT tocard (#PCDATA)>
    <!ELEMENT fromcard (#PCDATA)>
    <!ELEMENT fromcardver (#PCDATA)>
    <!ELEMENT amount (#PCDATA)>
    <!ELEMENT transdate (#PCDATA)>
    <!ELEMENT transid (#PCDATA)>
    transactions.xjs
    <xml-java-binding-schema>
    <element name="transactions" type="class" root="true"/>
    <element name="cardtocard" type="class"/>
    </xml-java-binding-schema>
    XML file
    ?xml version="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
    <transactions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="C:\My Documents\Xml\SVTConcord.xsd">
    <cardtocard>
    <tocard>1111222233334444</tocard>
    <fromcard>6666777788889999</fromcard>
    <fromcardver>567</fromcardver>
    <amount>100.00</amount>
    <transdate>2002-06-04 00:00:00.000</transdate>
    <transid>1111222202</transid>
    </cardtocard>
    </transactions>
    the XJC compiler for windows is
    @echo off
    echo JAXB Schema Compiler
    echo --------------------
    if "%JAVA_HOME%" == "" goto errorJVM
    if "%JAXB_HOME%" == "" goto errorJAXB
    set JAXB_LIB=%JAXB_HOME%\lib
    set JAXB_CLASSES=%JAXB_HOME%\classes
    echo %JAVA_HOME%\bin\java.exe -jar %JAXB_LIB%\jaxb-xjc-1.0-ea.jar %1 %2 %3 %4 %5
    %JAVA_HOME%\bin\java.exe -jar %JAXB_LIB%\jaxb-xjc-1.0-ea.jar %1 %2 %3 %4 %5
    goto end
    :errorJVM
    echo ERROR: JAVA_HOME not found in your environment.
    echo Please, set the JAVA_HOME variable in your environment to match the
    echo location of the Java Virtual Machine you want to use.
    echo For example:
    echo set JAVA_HOME=c:\jdk1.4.0_01
    goto end
    :errorJAXB
    echo ERROR: JAXB_HOME not found in your environment.
    echo Please, set the JAXB_HOME variable in your environment to match the
    echo location of the JAXB installation directory.
    echo For example:
    echo set JAXB_HOME=c:\jdk1.4.0_01\jaxb-1.0-ea
    :end

    When you compile the generated classes, be sure to put jaxb-rt-1.0-ea.jar in your classpath!

  • I get an error message when I compile the following.

    When I try to compile the following with Forte for Java I get an error
    import com.ms.security.*;
    import java.io.*;
    import java.net.*;
    import java.lang.Runtime;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.applet.Applet;
    import java.text.*;
    import java.util.Enumeration;
    import java.applet.*;
    import java.*;
    public class php extends java.applet.Applet {
    public void init ()
    private eector postResult()
    throws MalformedURLException , IOException
    URL url;
    URLConnection con;
    OutputStream oStream;
    String parameterAsString;
    byte [] parameterAsBytes;
    String aLine;
    parameterAsString = "x=2&y=2&z=2";
    parameterAsBytes = parameterAsString.getBytes();
    url = this.getCodeBase();
    url = new URL(url + "index.php3");
    con = url.openConnection();
    con.setDoOutput(true);
    con.setDoInput(false);
    con.setRequestProperty("Content=length",String.valueOf(parameterAsBytes.length));
    oStream = con.getOutputStream();
    oStream.write (parameterAsBytes);
    oStream.flush();
    BufferedReader in =new BufferedReader(new InputStreamReader(con.getInputStream()));
    aLine= in.readLine();
    while (aLine != null)
    System.out.println();
    aLine = in.readLine();
    in.close();
    oStream.close();
    The error message is
    php.java [22:1] cannot resolve symbol
    symbol : class eector
    location: class php
    private eector postResult()
    ^
    1 error
    Erros compiling php.
    Please help

    Is the postResult function supposed to return somthing (I don't see a return statement?). If not replace eector with void. If it returns something replace it with the type of the returned data wich might be Vector (mind the Cap).

  • When the Adobe Application Manager will open the following message: Download error. What should I do

    When the Adobe Application Manager will open the following message: Download error. What should I do

    is the error some gibberish like : UW44PKU  or some code similar to that?
    i think the code is        U44M1P7.
    if this is what happens i think i know what to do, that is if you already have PSCS6 (permanent license) version on you risk before you joined cc.
    vince
    Message was edited by: vinsolo

  • [svn:fx-trunk] 11540: Adding a bunch of ASDoc samples for the following classes:

    Revision: 11540
    Author:   [email protected]
    Date:     2009-11-06 14:27:40 -0800 (Fri, 06 Nov 2009)
    Log Message:
    Adding a bunch of ASDoc samples for the following classes:
        ColorBurnShader.as
        ColorDodgeShader.as
        ColorShader.as
        ExclusionShader.as
        HueShader.as
        LuminosityMaskShader.as
        LuminosityShader.as
        SaturationShader.as
        SoftLightShader.as
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Colo rBurnShader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Colo rDodgeShader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Colo rShader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Excl usionShader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/HueS hader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Lumi nosityMaskShader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Lumi nosityShader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Satu rationShader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Soft LightShader.as

  • I need to know that Adobe Premier elements 12 will do the following; allow for zooming in of recordings (i,e, can zoom in on items I edit); Can display orgiinal and zoomed recordings side by side; and allow for frame-by-frame playback

    I need to know that Adobe Premier elements 12 will do the following; Allow for zooming in of recordings (i,e, can zoom in on items I edit); Can display orgiinal and zoomed recordings side by side; and allow for frame-by-frame playback.
    Is this possible?
    Any input is appreciated! Thank you.

    Tom
    Thanks for the reply.
    Your thoughts on frame by frame viewing are can do. However, the real time playback feature includes the concept of rendering the Timeline, when the program indicates the need to do so,  to get the best possible preview of what you are seeing in the Edit area monitor. That is a major novel in itself. Each time you do a new edit you will get the render indicator message to ignore or act on.
    Definitely go the free 30 day tryout route for Premiere Elements 12. I have Premiere Elements 12 (updated to 12.1) and it runs fine on Windows 8.1 64 bit.
    Best start with the Premiere Elements 12 Help PDF.
    http://helpx.adobe.com/pdf/premiere-elements_reference.pdf
    Also please review by blog posts Premiere Elements 12 First Look and Premiere Elements 12 Daily Discovery.
    http://www.atr935.blogspot.com/2013/09/premiere-elements-12-first-look-details.html
    ATR Premiere Elements Troubleshooting: Premiere Elements 12 Daily Discoveries
    When you get to the point of hand on with a mini test run project, I can offer to work with you through some specific workflow details in post exchanges in your thread(s). And we can sort out the can and cannot do.
    ATR

  • Why the sap will compile the abap program again and again?

    Every one tell me that when you open some screen at the first time, the sap will compile the abap program and will not compile again at the next time.But I found actually when I open some screen at the 2th or 3th or more times,the sap will still compile the abap again.Such as open the T-CODE va01,mm01,and so on,the sap will show some message below the screen to show it was compiling the abap program.This make the operation spend me huge time.Is there any one could tell me how to resolve the problem or give me some advice?And I will appreciate him/her very much.Thank you.

    Hi..
    It has very simple answer ... SAP code resides in database and it doesnt deliver a exe or a dll files (obj) to customer ..Now when program initially is loaded it is compiled and its linked object file is stored in SAP memory and therefore it is not compiled next time...
    Regards
    Anuj Goyal

  • Error compiling the BPEL classes while configuring custom approval process

    Hi,
    I get the below error, but unable to fix this. Any one who did face this issue please share your thoughts to overcome this.
    Error(45,34): Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "ApprovalProcess" of composite "default/SelfRegistrationApproval!1.0"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    Thanks,
    Bhaskar

    You need to keep all the custom jars at three places :
    1) Soa ext , and make sao extension jar by running ant
    2) Bpel classpath
    3) in your project as an external referrence

  • Having problems uploading an album to create a book.  iPhoto will compile the data, but fails to upload. Error message allows a "Retry", but its a dead end.  (iPhoto 11)

    I can't get iPhoto 11 to accept my album to create a book.  Compiles OK, but bombs out when uploading.  I have tried Safe Mode and eliminating Energy Saver. I have pulled out the Preference file and re-inserted after logging back in, but nothing seems to work.  This problem seems pretty prevalent, since it keeps coming up in discussion groups.  I had the same problem with iPhoto 6, and hoped that it would have been cured by now, but apparently not.  I guess Apple likes to collect $49 from each caller to give out the proper solution.  Help!
    Andy in Spring

    OK - so I have tried deleting my iPhoto preferences, repairing my keychain, rebuilding my iPhoto library, uninstalling Safari Beta 4 and I still can't get this one photo album (that has 140 videos) to upload properly to MobileMe. I left it to upload when I went to bed and when I woke up, I saw that my iPhoto quit itself yet again. So again, if there was an error message, I missed it. Before I left for work, I started an upload of an album of just photos to see if that works, thinking that perhaps there's a video in the other album that iPhoto is getting stuck on. If that works, I suppose I could try uploading the videos one at a time, right? Just keep adding them to the Gallery till something fails? If I find that the album of photos failed, then I think my only choice will be to pay $49 for AppleCare's assistance. I love how one solution they already gave me (for free) is to purchase a new laptop. Yeah, that would solve it! LOL

  • How we Rewrite the following class so that it calculates sales tax using a

    public class Item {
    private String sku;
    private double price;
    // return the sales tax
    public double salesTax() {
    return price * 0.7;
    public Item(String sku, double price)
    this.sku = sku;
    this.price = price;
    }

    one thing i would like to say you, we are here for common discussion releated to Java, i have asked a question which might be knowing to u ? but in reply i think dont want to give answer ! oky no problem !
    and as per my research abilities are concerned that are well good enough but just dont having enough resourses avilable with me thats y i have put on my quiery.
    About my Answer to Question i will find it any how.
    Thankyou.

  • What export setting will match the following?

    Hi there,
    I'll be using a Canon Vixia HG20 with DM100 Canon minishoe external mic and the client requires the below attributes for final delivery.
    My question: What export setting(s)/codec in FCPX will ensure I get all of this criteria? I'd prefer to submit a quicktime file but I know there's lots of different codecs that result in a quicktime file output...
    REQUIREMENTS:
    HD FORMAT
      Tape and/or file Format: D5, HDCAM, HDCAM SR, Targa files, Uncompressed Quicktime (preferred)
      Recording Format: 1920 x 1080p NTSC
      Frame Rate: 24 fps (preferred), Acceptable Frame Rates: 23.98 fps, 23.97 fps, 30 fps, 59.94 fps, 60 fps
      Image/layout Format: 16:9, 1.78 or 1.85 aspect ratio. For full view (analog), 2.35 aspect ratio
      Title Safe & Image Safe Area: Image Safe Area 5% from edges of image, Title Safe Area 10% away from edges of image
    AUDIO OPTION 1
      Stereo Release Only
      Audio: Embedded
      Stereo: CH1=LT, CH2=RT (Broadcast mix, not to exceed -10 dbfs)
    Thanks for your help!

    Is there a specific export setting that will ensure it's uncompressed QuickTime? I think I saw 8 and 10 bit versions as possibilities...

  • Could not find the main class : HelloWorldApp program will exit

    please help me
    i downloaded and installed jdk-6u13-windows-i586-p(1) from sun.java.com
    in my computer --> Advanced --> environment variables --> i had set
    user variable :
    variable value
    java_home C:\Program Files\Java\jdk1.6.0_13\bin
    System variable:
    path : C:\Program Files\Java\jdk1.6.0_13\bin
    after that i wrote a program
    * The HelloWorldApp class implements an application that
    * simply prints "Hello World!" to standard output.
    class HelloWorldApp {
    public static void main(String[] args) {
    System.out.println("Hello World!"); // Display the string.
    i saved in c:\ mywork
    i compiled it with
    javac HelloWorldApp.java and then
    java HelloWorldApp
    output / result also came
    but iam unable to create jar file . when it is created it is showing
    could not find the main class : HelloWorldApp program will exit
    i created jar file by following way
    i created
    manifest.txt
    Min-Class : HelloWorldApp and then
    start -->run--> cmd-->
    c:\mywork> jar cfm test.jar manifest.txt HelloWorldApp.class
    c:\ java -jar test.jar
    but it displays a message
    " could not find the main class : HelloWorldApp program will exit "
    please please please help me please 1000's of please help me

    Peter__Lawrey wrote:
    You have to specify the manifest with a special option (I think its was -M)
    Otherwise the jar will create one (even if you provide it)No, the text file passed as a parameter will be incorporated in the manifest file generated by the JAR tool.
    @OP: This will work:
    JarTest.java
    public class JarTest {
      public static void main(String[] args) {
        System.out.println("JarTest works!");
    }manifest.txt
    Main-Class: JarTest+(note there is an extra new line in the manifest.txt!)+
    Now execute these commands:
    javac JarTest.java
    jar cfm MyJar.jar manifest.txt JarTest.class
    java -jar MyJar.jar And on my machine, the string "JarTest works!" is displayed on the screen.
    And if you look in the MANIFEST.MF file inside your jar file (you can use almost any zip-utility for this), you will see the following:
    Manifest-Version: 1.0
    Created-By: 1.6.0_0 (Sun Microsystems Inc.)
    Main-Class: JarTestOr something similar.

  • Will adobe make Flex encorporate the following...

    Hi,
    I have a general question outside programming. I wish to know
    whether anyone knows if Adobe will encorporate the following
    technologies into 1 package and make the others somewhat redundant.
    The packages being:
    - Flex
    - Director
    - Flash
    - CF
    - JRUN
    I'm pretty much a CF guy... but I see CF days as numbered,
    either Adobe translate CF functionality into Flex or CF is going to
    die. I would also like to see all other technologies packaged in
    Flex so that Flex could be like a .NET framework...
    how about you guys... you think thats a good idea?

    They work very differently, what i would like (and this section of the forum isn't meant for feature requests)
    is when you create a new muse site it asks what kind of site you want:
    Responsive
    static
    blog
    etc.... that would be nice.
    or just make it responsive.
    But i doubt this will happen soon

Maybe you are looking for

  • Partner application access to portal login info

    How can an SSO partner application (Java) tell whether or not a user has logged in to Portal? I need to log activity in a public application servlet, so I'd like to log the user as PUBLIC if not logged in or as their actual userid. I don't seem to ha

  • How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)?

    How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)? When I do what Apple said and go to a Pages file in finder and select "get info" then select "Pages 4.3" and "change all" it just defaults t

  • Errors in data uploading

    SAPB1 error: (-10) There is not enough quantity available for batch '0301' [Message 29-53]                        (There is no quantity in ware house for this item) What about your opinion? And How to find it? Thanks, Surendra. Edited by: surendra_19

  • FireFox 4 won't open our web app anymore?

    Hi. I notice that FireFox 4 won't load our web app. When I view the source it is blank? It's fine in FF 3, IE and Chrome

  • Probleme mit Camera RAW_2_3

    Hallo, ich verwende bei meiner Fuji S20Pro den o.g. RAW Converter und dies in Photoshop CS. Heute habe ich einige Bilder in einer Schneelandschaft gemacht und zwar im RAW Modus. Das Ergebnis in Photoshop war erschütternd http://home.arcor.de/Rauwolf/