Access the jar in jre in LINUX platform, wait on line

my program need to access some classes in jre,
com.sun.xml.tree.XmlDocument
it locates in /usr/local/java/jdk1.5/jre/lib/rt.jar, I have set it use the export CLASSPATH command, however, it cannot get access to that class, could anybody tell me what is the issue there???
ReplaceText.java:6: Can't find default package `javax.xml.parsers'. Check the CLASSPATH environment variable and the access to the archives
ReplaceText.java:7: Class or interface `com.sun.xml.tree.XmlDocument' not found
in import.
import com.sun.xml.tree.XmlDocument;
^
ReplaceText.java:23: Type `DocumentBuilderFactory' not found in the declaration
of the local variable `factory'.
DocumentBuilderFactory factory =
^
ReplaceText.java:29: Type `DocumentBuilder' not found in the declaration of the
local variable `builder'.
DocumentBuilder builder = factory.newDocumentBuilder();
^
ReplaceText.java:64: Type `TransformerFactory' not found in the declaration of the local variable `transformerFactory'.
TransformerFactory transformerFactory = //new
^
ReplaceText.java:66: Type `Transformer' not found in the declaration of the local variable `serializer'.
Transformer serializer = transformerFactory.newTransformer(); //new
^
6 errors

You are supposed to provide the java source code that lead to this system error, we are not assembler debuggers! but we can find a workaround if you display your code

Similar Messages

  • Can't able to access the Jar files which is kept inside the folder.

    Hi,
    I am using the eclipse IDE, my project folder contains the folders src, bin, .metadata, .settings
    if i place the jar file in the same location of the above mentioned folder means i can able to use the Jar file in eclipse(in my project).
    But i create one folder in the same location in the name of Jar or anything and all jar files are placed inside the folder,then i can't able to access the jar file in eclipse(in my project).
    How i can solve this problem?

    RajivGuna wrote:
    ..How i can solve this problem?Put Eclipse aside for the moment and learn how the SDK tools work at the level of the command line, then you will be much better placed to figure how to do it in the IDE. If you are still having problems, I suggest you ask on an [Eclipse forum|http://www.eclipse.org/forums/].

  • Couldn't view the JMC startup menus on linux platforms

    Hi Team,
    We are trying to invoke jmc 5.2 locally on a Linux platform having RHEL 64-bit server edition.
    2.6.18-238.9.1.el5 #1 SMP Fri Mar 18 12:42:39 EDT 2011 x86_64 x86_64 x86_64.
    To view the GUI on rhel server edition we installed the respective packages necessary for X server.
    We also verified whether are we able to view any gui app for example xclock. Everything went well.
    But when we tried to invoke jmc we could see the jmx browser without any of the menu titles. We could see only boxes not the menu title.
    JDK version used : /tmp/jdk1.7.0_45/bin
    [Not able to insert a image]
    Could you please help us.
    Thanks
    Sattish.

    Hi Hernandez,
    Thanks for your inputs. Have listed the complete debug message while starting jmc on linux.
    ./jmc -debug
    Start VM: /opt/oracle/jdk1.7.0_45/bin//./java
    -XX:+UseG1GC
    -XX:+UnlockCommercialFeatures
    -XX:+FlightRecorder
    -Djava.net.preferIPv4Stack=true
    -jar /opt/oracle/jdk1.7.0_45/bin//../lib/missioncontrol/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    -os linux
    -ws gtk
    -arch x86_64
    -showsplash
    -launcher /opt/oracle/jdk1.7.0_45/bin/jmc
    -name Jmc
    --launcher.library /opt/oracle/jdk1.7.0_45/bin//../lib/missioncontrol/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807/eclipse_1502.so
    -startup /opt/oracle/jdk1.7.0_45/bin//../lib/missioncontrol/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.overrideVmargs
    -exitdata 17900a1
    -debug
    -vm /opt/oracle/jdk1.7.0_45/bin//./java
    -vmargs
    -XX:+UseG1GC
    -XX:+UnlockCommercialFeatures
    -XX:+FlightRecorder
    -Djava.net.preferIPv4Stack=true
    -jar /opt/oracle/jdk1.7.0_45/bin//../lib/missioncontrol/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    Install location:
        file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/
    Configuration file:
        file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/configuration/config.ini loaded
    Configuration location:
        file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/configuration/
    Framework located:
        file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
    Framework classpath:
        file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
    Splash location:
        /opt/oracle/jdk1.7.0_45/lib/missioncontrol/configuration/org.eclipse.equinox.launcher/com.jrockit.mc.rcp.application_5.2.0.157284/splash.bmp
    Debug options:
        file:/opt/oracle/jdk1.7.0_45/bin/.options not found
    Time to load bundles: 7
    Starting application: 23907
    Dec 06, 2013 3:00:13 AM com.jrockit.mc.rcp.application.ApplicationPlugin initializeDebug
    INFO: JMC debug mode enabled
    Dec 06, 2013 3:00:13 AM com.jrockit.mc.rcp.logging.LoggingToolkit initializeLogging
    INFO: Debug settings enabled - loaded debug settings for the logger from logging_debug.properties.
    Dec 06, 2013 3:00:14 AM com.jrockit.mc.rcp.logging.LoggingToolkit initializeLogging
    FINE: Logger initialized
    Dec 06, 2013 3:00:14 AM com.jrockit.mc.jdp.client.Pruner run
    FINE: JDP prune thread started!
    Dec 06, 2013 3:00:14 AM com.jrockit.mc.rcp.application.ApplicationPlugin start
    FINE: Initializing com.jrockit.mc.console.ui to register open handler for DND.
    Dec 06, 2013 3:00:14 AM com.jrockit.mc.rcp.application.p2.UpdateSiteURLToolkit isOnOracleNetwork
    INFO: Could not find interface on Oracle internal network. Oracle internal update site disabled.
    Dec 06, 2013 3:00:15 AM com.jrockit.mc.rcp.application.p2.UpdateSiteURLToolkit isOnOracleNetwork
    INFO: Could not find interface on Oracle internal network. Oracle internal update site disabled.
    Dec 06, 2013 3:00:20 AM com.jrockit.mc.common.mbean.LocalMBeanToolkit <clinit>
    FINE: Acquired local PID. PID resolved to 26343
    Dec 06, 2013 3:00:20 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 21924
    Dec 06, 2013 3:00:20 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 26343
    Dec 06, 2013 3:00:25 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 29768
    Dec 06, 2013 3:00:31 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 31451
    Dec 06, 2013 3:00:36 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 31839
    Dec 06, 2013 3:00:36 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 29066
    Dec 06, 2013 3:00:41 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 2177
    Dec 06, 2013 3:00:47 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 27120
    Dec 06, 2013 3:00:52 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 31443
    Dec 06, 2013 3:00:57 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 15316
    Dec 06, 2013 3:01:02 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
    INFO: Done resolving PID 31205
    Dec 06, 2013 3:01:03 AM com.jrockit.mc.ui.misc.SwingSupport initLookAndFeel
    INFO: Initializing Swing L&F!
    Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
    FINE: In setupModifierMap
    Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
    FINE: metaMask = 0
    Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
    FINE: altMask = 8
    Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
    FINE: numLockMask = 16
    Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
    FINE: modeSwitchMask = 128
    Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
    FINE: modLockIsShiftLock = 0
    Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setBackingStoreType
    CONFIG: The system property sun.awt.backingStore is not set, by default backingStore=NotUseful
    Dec 06, 2013 3:01:30 AM sun.awt.X11.XWM <init>
    FINE: Window manager: NO WM
    Dec 06, 2013 3:01:30 AM com.jrockit.mc.ui.misc.SwingSupport initLookAndFeel
    INFO: System Swing L&F is javax.swing.plaf.metal.MetalLookAndFeel
    Dec 06, 2013 3:01:30 AM com.jrockit.mc.ui.misc.SwingSupport initLookAndFeel
    INFO: Setting L&F to javax.swing.plaf.metal.MetalLookAndFeel
    Dec 06, 2013 3:01:33 AM sun.awt.X11.XAWTXSettings initXSettings
    FINE: Initializing XAWT XSettings
    Dec 06, 2013 3:01:35 AM sun.awt.X11.XMSelection selectPerScreen
    FINE: Grabbing XServer
    Dec 06, 2013 3:01:35 AM sun.awt.X11.XMSelection selectPerScreen
    FINE: Screen = 0 selection name = _XSETTINGS_S0
    Dec 06, 2013 3:01:35 AM sun.awt.X11.XMSelection selectPerScreen
    FINE: UnGrabbing XServer
    Dec 06, 2013 3:01:35 AM sun.awt.X11.XAWTXSettings initPerScreenXSettings
    FINE: Updating Per XSettings changes
    Dec 06, 2013 3:01:35 AM sun.awt.X11.XAWTXSettings getUpdatedSettings
    FINE: owner =0
    Dec 06, 2013 3:03:04 AM com.jrockit.mc.ui.misc.SwingSupport initLookAndFeel
    INFO: Initializing Swing L&F!
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: General org.eclipse.ui.preferencePages.Workbench
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Security org.eclipse.equinox.security.ui.category
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor removePrefsPage
    INFO: Removed preference page Security (ID:org.eclipse.equinox.security.ui.category)
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Network Connections org.eclipse.ui.net.NetPreferences
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Java Mission Control com.jrockit.mc.ui.preferences.MissionControlPage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: JVM Browser com.jrockit.mc.browser.preferences.BrowserPreferencePage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Local com.jrockit.mc.browser.attach.preferences.AttachPreferencePage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: JDP com.jrockit.mc.browser.jdp.preferences.JDPPreferencePage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: JMX Console com.jrockit.mc.console.ui.preferences.GeneralPage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Persistence com.jrockit.mc.console.ui.preferences.PersistencePage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Communication com.jrockit.mc.console.ui.preferences.CommunicationPage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: MBean Browser com.jrockit.mc.console.ui.preferences.MBeanBrowserPage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Flight Recorder com.jrockit.mc.flightrecorder.ui.main.preference.page
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: JMXRMI com.jrockit.mc.rjmx.ui.preferences.JMXRMIPreferencePage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Install/Update org.eclipse.equinox.internal.p2.ui.sdk.ProvisioningPreferencePage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Available Software Sites org.eclipse.equinox.internal.p2.ui.sdk.SitesPreferencePage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Automatic Updates org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdatesPreferencePage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Help org.eclipse.help.ui.browsersPreferencePage
    Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
    FINE: Prefs node: Content org.eclipse.help.ui.contentPreferencePage
    Application Started: 344013
    Please review and let me know for further details
    Thanks
    Sattish.

  • Access the jar helpfile located in a remote host

    Hi,
    I can't find any example how I can have the java help of my application using a jar helpfile that is located in a remote host.
    A limitation is that the jar helpfile has to be in the classpath to. I don't think I can set a classpath pointing to a remote host.
    Anyone can give me some direction how to setup javahelp to use a remote jar file?
    Thanks,
    Diego

    Hi efebo,
    “The same applies for a DC ”
    As for replicating virtualized DC (Personally,  I do not suggest to replicate DC , even though it can be replicate ), please refer to following link:
    http://technet.microsoft.com/en-us/library/dn250021.aspx
     "In short, Exchange does
    not support the Hyper-V Replica feature.  Exchange has a long history of supporting virtualisation from
    Exchange 2003 onwards.  It is fully supported to install Exchange
    2007,
    2010 or
    2013 as a virtual machine on Hyper-V, but using the Hyper-V replica feature is not supported.
    For details please refer to following link:
    http://blogs.technet.com/b/rmilne/archive/2013/07/29/exchange-and-hyper-v-replica-support.aspx
    I assuming that the "Remote DR site" and the primary site both have public IPs .
    Based on my knowledge  you can not access replica site VM  directly after a disaster , maybe you need to rebuild primary site and replicate VM back .
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Trouble accessing the most basic JRE functions?!!!

    I'm in my 1st semester for Java programming, I've just downloaded the latest SDK to Windows XP, & everything appears to be fine. (the dancing bird etc) But I cannot locate the Text Pad in order to run the most basic Java commands to test my compiler. Can anyone help me? And please explain the various possibiliies it as if I were a child, my thanks in advance.

    There is not magic that you need to know to configure the path variable, it is the same for Java as it is for any windows commands, just go into your "System Properties/Advanced/Environment Variables" and set up your Path variable. javac is just an executable (EXE) program like regclean or notepad. Look in your system and make sure you have your path variable include the fully qualified path pointing to where javac and java are located.
    You are also going to have to setup a system variable called "CLASSPATH" and have it point to your java library.

  • How to get the jar file without knowing its name and any class inside it?

    Hello, everybody!
    I would like to know if there's a way to get a reference programatically to the initial jar without knowing its name and any class contained in it. By "initial jar" I mean the jar that was called in the prompt, like this:
    java -jar jarfile.jaror in another way, in a graphical system. To be sincere what I really want is to get a reference to the jar's manifest, but I know if I can get a reference to the jar I can get a reference to its manifest file. Or if you know a way to get the manifest directly, it would also help. So, is there a way to do this?
    Thank you.
    Marcos

    jverd wrote:
    marcos_aps wrote:
    abillconsl wrote:
    Can you be more specific - IOW, can you cite a specific case?Absolutely. I want to access the jar in source code with the java.util.zip.JarFile class, for example.But why? You still haven't provided a use case or explained what you're trying to accomplish. As already pointed out, whatever you're trying to do, this is a brittle solution. If you explain what you're trying to accomplish with this, somebody may be able to suggest a better approach.jverd, I explained for baftos. Anyway, I will try to be more specific. I start my sytem like this, from, say, for example, jar1.jar:
    import br.product.System;
    public static void main(String[] args)
        System.start("NameOfTheSystem");
    }The System class is in util.jar, for example. This jar is used by all systems. I wouldn't like to pass in the name of the system, as above. I would like that the System class could read it from jar1.jar's manifest file. I just would like to have this:
    import br.product.System;
    public static void main(String[] args)
        System.start();
    }It is more elegant and I don't have the name of the system in two places: code and manifest file.
    Marcos

  • Unable to install 1.6.0_17 JRE in Linux FC12

    Hi,
    I am having Linux FC(Fedora) 12 - 64 bit system. I am trying to install JRE 1.6.0_17, and get the following error when trying to install ( jre-6u17-linux-x64.bin).
    Do you agree to the above license terms? [yes or no]
    yes
    Unpacking...
    Checksumming...
    Extracting...
    ./jre-6u17-linux-x64-rpm.bin: line 368: ./install.sfx.3884: cannot execute binary file
    I also did the chmod a+x jre....
    Can anyone help to respond to this issue,
    THanks
    Kuga

    This forum is about tools in Sun Studio (now Oracle Solaris Studio), a program development suite for C, C++ and Fortran.
    Your question seems to be about using Java, not Sun/Oracle Studio. Please try an appropriate Java forum here:
    [http://forums.sun.com/index.jspa?tab=forum]

  • Admin 2 Windows domains on an Linux platform (tmadmin)

    The configuration we have adopted is the following:
    Tuxedo on a Linux platform which administrate different Tuxedo domains
    Linux
    Tuxedo Admin
    Gateway
    Win/2K Win/2K
    Tuxedo Tuxedo
    Appli1 Applic 2
    All seems to be in order, except that on the admin platform, in a tmadmin session
    we have as prog name field the full name of the executable.
    Is it a procedure to obtain only the filename of the executable (cf. basename
    in unix) ?
    Thanks in advance for your reply.
    Regards,
    Philippe

    jemar98 wrote:
    We are using Developer suite 10.1.2.3 on an XP platform to develops Forms & Reports to be deployed on our Oracle E-Business Suite 12.1.3 environment.
    The Operating system on the PC has now been upgraded from XP to Windows7. What is the certified version of the Developer Suite (Forms & Reports) on a Windows 7 64-bit PC ?
    Edited by: jemar98 on Jan 3, 2013 6:06 PMPlease see these docs.
    Certification of Oracle Developer Suite 10g (10.1.2) on Windows 7 (32-bit) [ID 1292919.1]
    Forms / Reports Builder Certification on MS Windows 7 [ID 1112213.1]
    How to Install Developer Suite 10.1.2.3 on Windows Vista or Windows 7 (32bit) [ID 559067.1]
    Thanks,
    Hussein

  • How i can access the linux shell file from windows platform

    Hey Friends,
    Anyone can tell me that through RMI how i can access the linux shell file or files from windows platform.
    Thanks in advance...

    it happend by mistake......
    sorry allYou've vanished, I checked your posting history and you have posted numerous threads about this problem. I hope you are reading the document that I suggested and will return knowing how to post smart questions. Otherwise you have a long way to go before you qualify for that -ji at the end of your id.

  • Creating a JAR in Eclipse...can't access files in the JAR properly.

    Hi all! I'm a newbie at JAR creation, and am having troubles. I have a project that loads images from image files in my project. I can create the JAR and all, and it runs, but the buttons that have ImageIcons with those IO loaded images are blank. I've tried to include the images when creating the JAR, but it keeps acting like the images never existed. When I run the JAR and have the images separately included in the directory (instead of packing them up too), it won't work as well...UNLESS those images are put in my $HOME directory (Linux).
    Does anyone know how I can properly refer to the images that I'm trying to pack into the JAR from within the JAR? Or, is there a way for the JAR to understand where those images are supposed to be (redirect the focus from the $HOME directory to the JAR's directory)? Any help would be greatly appreciated! :)
    -Keith

    Hi,
    Can the user execute the program through explorer? In Windows Server 2003, the Users group does not have Read and Execute permissions to the command processor (Cmd.exe). 
    You could refer to the article below to resolve the issue:
    "Access is denied" error message when you run a batch job on a Windows Server 2003-based computer
    http://support.microsoft.com/kb/867466
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How To Access a jar file present outside the war file through a jnlp

    Aoa
    I m new to this forum
    I m having problem with my jnlp file
    i want to know is there any way to access a jar file through jnlp.The problem is that my jnlp file is present in the war file
    and i want to know how to acess a jar file through this jnlp.The scenerio is as below
    I m using ear file on jboss.Its hirerchy is as
    -PAN-war.war
    -launch.jnlp
    -PAN-app-client.jar
    my jnlp file is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/" href="PAN/launch.jnlp">
    <information>
    <title>PanEmirates</title>
    <vendor>M Fazal Ur Rehman</vendor>
    <description>PanEmirates</description>
    <description kind="short">PanEmirates</description>
    <homepage href=""/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <jar href="PAN-app-client.jar" download="eager"/>
    <jar href="lib/javafxrt.jar" main="true" download="eager" />
    <jar href="lib/Filters.jar" download="eager"/>
    <jar href="lib/javafx-netbeans-fxuserlib.jar" download="eager"/>
    <jar href="lib/swing-layout-1.0.3.jar" download="eager"/>
    </resources>
    <application-desc main-class="net.java.javafx.FXShell">
    <argument>pan.Main</argument>
    </application-desc>
    </jnlp>
    when i run launch.jnlp file it says unable to download resource http://localhost:8080/PAN/PAN-app-client.jar
    how to access this jar file
    Any help or comment would be highly appreciated
    Regards
    M Fazal Ur Rehman

    Excellent question. I don't see any client-jar in your EAR file structure. So I am assuming you are writing a separate client application which will talk to the ejbs deployed as part of this EAR. You need to do the following:
    Write another EAR file with the following structure:
    ear:
    META-INF/application.xml
    util.jar
    client.jar
    client.jar should have a META-INF/MANIFEST.MF and that should contain Class-Path:util.jar and value for Main-Class attribute.
    Now deploy this new ear to your application server and execute it using Application Client Container that comes with your app server.
    If you don't want to write another EAR file, then bundle th client.jar in your original EAR file.
    Points to note are:
    you have to repackage util.jar again inside this ear file.
    For portability reason, you should use Class-Path manifest entry in client.jar. Refer to http://java.sun.com/j2ee/verified/packaging.html and J2EE platform spec section #8.2.
    Hope this helps,
    Sahoo

  • Applet inside a JAR: Cannot access other classes within the JAR

    Hello,
    Description
    Web app + applet (packaged in a JAR)
    I have followed this tutorial
    JAR contents
    package mypackage
    SimpleApplet.class
    SimpleObj.class
    _"SimpleApplet" uses "SimpleObj"_
    package mypackage;
    public class SimpleApplet extends JApplet {
        @Override
        public void init() {
            SimpleObj obj = new SimpleObj();
    HTML code
    <applet archive="SimpleApplet.jar" codebase="." code="mypackage.SimpleApplet.class" width="800" height="600" />
    SimpleObj cannot be found (Java Console)
    java.lang.NoClassDefFoundError: mypackage/SimpleObj
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: mypackage.SimpleObj
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 8 more
    Caused by: java.io.IOException: open HTTP connection failed:*http://localhost:8080/SimpleApp/mypackage/SimpleObj.class*
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 12 more
    Exception: java.lang.NoClassDefFoundError: mypackage/SimpleObj
    It looks like JRE does not search for the SimpleObj class inside the JAR, but tries to get it from the server...
    Any ideas?
    Thanks in advance,
    Gerard
    Edited by: gsoldevila on Dec 10, 2008 2:05 AM

    misread, deleted
    Edited by: atmguy on Dec 10, 2008 1:12 PM

  • Can a unsigned jar file access the tmpdir (java.io.tmpdir)?

    Hello, according to the JNLP tutor, a signed jar file can access the local file system, but a unsigned one can not. My question is, can a unsigned jar file access the temp directory (the system property java.io.tmpdir)? I think the temp directory should be accessible even though it is part of the local file system.
    Thanks,
    LyLi

    no - unsigned application has no read/write access to the temp dir, but you can use the jnlp api to read and write files with the users permssion.
    see: http://java.sun.com/javase/6/docs/jre/api/javaws/jnlp/index.html for FileOpenService, FileSaveService, and ExtendedService.
    /Andy

  • Not able to access the portal on the network - (RedHat Enterprise Linux 5).

    Friends,
    I have installed the portal(7.1) on a linux(RHEL 5) box.I am able to access the portal locally and everything looks fine.
    However when I try accessing the portal on the network...I get "page cannot be displayed" as if the server is not listning on 8080.
    when I do "GET http://rexportal.davita.corp:8080" I get ........
    500 Can't connect to rexportal.davita.corp:8080 (connect: No route to host)
    what does this mean?
    other info:
    1) I have disbaled the firewall by setting SELinux to disabled.
    2)I am able to traceroute to the m/c
    3) can ftp and SSH
    4) When I do "GET http://rexportal.davita.corp" I see a apache server page.It means apache server is accessible at port 80 on the network.
    Can you plz help me resolve this issue.what can prevent my server not being accesible across the network
    Thanks!!
    Deepak.

    I was able to resolve this.! basically It was a firewall issue.
    To help othere here is what I found.
    I had disabled the SELinux utility which should have basically disabled the firewall service but It didnt stop it.
    You can check If the firewall is running with following command on redhat linux.
    service iptables status
    If it is enabled ,you can either stop it by
    /etc/init.d/iptables stop (not recommended -- for security)
    or
    you can add a entry for the port you want to enable by modifying the file
    /etc/sysconfig/iptables
    Hope it might be helpful !
    Thanks,
    Deepak.

  • Protecting the jar files from being web access

    I have a jnlp file which is put under tomcat webapps folder, say (\webapps\TEST\launch.jnlp), with the jar and lib files put in the subfolder (\webapps\TEST\folder1\*.jar AND \webapps\TEST\folder1\lib\*.jar).
    My question is how can i prevent user from direct access to the jar files via typing http://www.someip.com/TEST/folder1/main.jar ? I tried the following methods but it seemed not working:
    1. Change the folder permisson in \webapps\TEST\*.*, but when user type the above hyperlink they can still get the jar file
    2. put the jar and related files under \WEB-INF\, but now this time running the launch.jnlp, it returns an error saying that it can't access/find the WEB-INF.
    Is there any method? Or should I say, when you published jnlp to web, the related jar files are forced to be accessed by everyone.

    Sounds easy to me: encrypt your xml, then instead of just storing your key as plain bytes do some reversable operations on it (xor masks, reversions, whatever you like), just do them in many different points (and classes) of your code, have some parts done by methods that actually check application is running under JWS with proper codebase, scramble it all, and suddently the whole stealing operation won't be worth the effort. Obviously you should have many private (and package protected) methods, seal packages and so on. Maybe, somehow, you can even use reflection to identify calling classes (not sure, never looked for anything similar).
    What else? write down some c++ code into your own dll/JNI library and make it do something too, so they'll even need to decompile the dll. If you know first execution is always online you can send another xor key and store it with persistence service or write it down to windows registry. You can keep making it harder as much as you like, even just with silly code like
    Math.ceil((new GregorianCalendar.getField(Calendar.YEAR)%2000)/1000)*((int)('c'-'a'))just to retrieve the number 2. If you distribute such code through many lines and methods, once you scramble it, most people will give up.
    Bye.

Maybe you are looking for

  • Stock transfer in quality certificate

    Hi all,   I have one question i have activated indicator stock transfer indicator " transfer posting and stock transfer order "     I am transferinfg one batch from one plant A ( company codex) to another plant  B ( company code Y)       Now the ques

  • Mail Signature Issues (multiple)

    Cumulatively I have spend 20-30 hours trying to make a signature and continue to have issues (never see this experience in APPLE holiday commercials!). I have researched this Board and there are a few cross-overs, but I am including them all here to

  • Dragging an Email to a Task does not include the message body in the task.

    Since we migrated from Exchange 2007 to Exchange 2013 a few months ago, we have had issues with creating tasks by dragging an email into the task folder.  The task gets created but the body of the email does not transfer to the body of the task.  Has

  • Numeric keypad on W540 not working

    I might have seen the numeric keypad keys work once since getting this machine, but now can't get the keys to produce numbers.  Some of the keys initiate other actions not associated with numeric data entry.   I tried removing the wireless dongle for

  • PI_Basis Upgrade

    We are going to upgrade stack level from 13 to 16. Current SP level for PI_Basis is Release 2005_1_620 Patch 13. I see Releases 2003_1_620, 2005_1_720 and 2006_1_620 in stack queue for 16 ( In service market place ). My Question is : Is it 2005_1_620