Exporting using JAR tool

Hi,
I've created a Java Project in Eclipse, wich makes use of several external classes in the classpath. When viewing in the applet viewer, it works without trouble.
But now I want to export it and test it from (a simple) html site. It gives a "ClassNotFoundException" by every included class, probably because the classpath is not included when exporting from eclipse.
So I thought, no problem. I'll export it using the jar command in java. This is the command I use (when having the DOS cursor in the folder where the .class files and packages are stored) :
jar cfm my_unsigned.jar manifest.txt applet downloadManager extra uploadManager
<html>
<head><title>Videobank</title></head>
<body>
<applet archive="my_signed.jar" width="300" height="200" code="applet.Uploader.class">
</applet>
</body>
</html>manifest.txt is off couse my manifest, applet downloadManager extra and uploadManager are the folders where the classes are in. "Jar"-ing and signing (after I jarred the files, i sign them, and call the signed file my_signed.jar) doesn't give any troubles, but when I try to run this one, it al ready gives a "ClassNotFoundException" because the Uploader class is not found (the one I'm trying to open using the applet tag.)
Does anyone know what I'm doing wrong?
Jan
Edited by: Zwaaikom on Oct 1, 2008 11:28 PM
Edited by: Zwaaikom on Oct 2, 2008 12:26 AM

Post the content of the manifest file AND the whole error message please.
Take a look at the Java tutorial jar lesson here and especially the entry point setting here .

Similar Messages

  • Hide classes while using jar tool.

    I have a set of API classes which I need to ship using jar.
    But even if I use jar utility to archive the classes, one can easily extract and decompile the classes.
    Is there any way this can be avoided?
    Regards

    Not really. You can use an obfuscator to make the code harder to decompile in a way that's easy to read. I'm told some obfuscators can generate class file code that breaks decompilers, but the code could still be disassembled or the next version of decompilers will be able to defeat it.
    By the way, this is an issue with any language.

  • CTS+ - How to hide "export using Filesystem" from PI tool?

    Hi experts,
    I have already implemented "How To  Configure Enhanced CTS PI 7.1", now I wonder If it is possible to hide export using Filesystem since I would like to force people using "Export using CTS" from PI tools.
    I have alredy surfing on internet without luck : (
    Could you pleas help with this?
    Thanks in advance.

    Hello Emili
    The Exchange Profile parameters below control whether the "Transport Using File System" option is visible in the transport wizard. If you set the parameters to "false" (without the " and all in lower case) then this transport option will no longer be visible.
    1) com.sap.aii.ibrep.core.transport.enableFileExport
    2) com.sap.aii.ibdir.core.transport.enableFileExport
    If these parameters do not already exist in the Exchange Profile, you can create them and set the value to false.
    Regards
    Mark

  • Has anybody used jsmooth tool to convert .jar to .exe?help needed

    Hello,
    has anybody used jsmooth tool to convert .jar to .exe if so please let me how to do because i couldnt do using the user manual since its not clear pls if any one uses it please let me know the procedure to do its really urgent plsssss

    Prabhav (guest) wrote:
    : We were looking for a tool from which we could directly embed
    : PL/SQL codes to our pre built HTML pages. When I came across
    : WebAlchemy, developed by the Aussie pro, I thought that was
    the
    : thing I wanted. I am using the beta version 2.1 of WebAlchemy
    : but I am having problems converting my pl/sql embedded Html
    file
    : into web PL/SQL cartridge as the Alchemy cannot convert few
    : attributes properly.
    : Has any body used it and have solution? Is there any other
    : product like this on the web or market? Pleaes advice, only
    : thing I want is to let my HTML be able to listen to Pl/sql
    : procedure and generate dynamic contents without use of CGI and
    : JavaScript.
    : Please suggest anything u can.
    Hi,
    I have also used Web Alchemy, but have never come across a
    production version (I tried also). It's a shame it was never
    completed, as it only seems to support HTML v2.
    Regards
    Toby.
    null

  • While exporting to .jar I found something...

    So yesterday I was messing around trying to export to .jar... I was successful, but when I exported I accidentally exported to .java... And then I noticed that I can export to really any extension... like example.dat... So I did that... Now my question is how can I decompile the code that I exported to 'example.dat'?
    Thanks a bunch

    Jar archives traditionally use a ".jar" extension (and so you should use that extension when you export the file). But in a lot of situations the extensions does not really matter. You can use any legal filename when creating/listing/expanding the archive. You can also use an archive of any name as part of your classpath.
    public class JarTest {
        public static void main(String args[]) {
            System.out.println("Hello from JarTest");
    pbrockway@linuxdeskd6off:~/JDC/temp$ javac -cp . JarTest.java
    pbrockway@linuxdeskd6off:~/JDC/temp$ jar cf rose.dat JarTest.class
    pbrockway@linuxdeskd6off:~/JDC/temp$ java -cp rose.dat JarTest
    Hello from JarTest
    pbrockway@linuxdeskd6off:~/JDC/temp$ jar tf rose.dat
    META-INF/
    META-INF/MANIFEST.MF
    JarTest.class
    pbrockway@linuxdeskd6off:~/JDC/temp$ An IDE may impose its own rules, but the tools that come with the JDK - java, javac, jar - work according to their documentation.

  • Using Text Tool Freezes Photoshop CC 2014.2 x64 release

    I have just updated Photoshop CC to 2014.2.0 -- 20140926.r.236 x64 release. Now I am experiencing an issue when I use the text tool to just type a few words on a new document or layer. The application seems to freeze up as soon as I start typing? I wait several minutes with nothing happening and have to resort to using the Windows task manger to kill the photoshop processes. This did not happen before I updated to this release?? Please advise how to fix this if possible to [email protected].
    I'm using Windows 7 x64
    Here's the system info reported from Photoshop:
    Adobe Photoshop Version: 2014.2.0 20140926.r.236 2014/09/26:23:59:59 x64
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:7, Stepping:10 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1
    Physical processor count: 2
    Processor speed: 3000 MHz
    Built-in memory: 8189 MB
    Free memory: 1413 MB
    Memory available to Photoshop: 7161 MB
    Memory used by Photoshop: 80 %
    3D Multitone Printing: Disabled.
    Windows 2x UI: Disabled.
    Highbeam: Enabled.
    Image tile size: 128K
    Image cache levels: 2
    Font Preview: Medium
    TextComposer: Latin
    Display: 1
    Display Bounds: top=0, left=0, bottom=1024, right=1280
    OpenGL Drawing: Enabled.
    OpenGL Allow Old GPUs: Not Detected.
    OpenGL Drawing Mode: Normal
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    AIFCoreInitialized=1
    AIFOGLInitialized=1
    OGLContextCreated=1
    NumGLGPUs=1
    glgpu[0].GLVersion="3.0"
    glgpu[0].GLMemoryMB=1024
    glgpu[0].GLName="ATI Radeon HD 4800 Series "
    glgpu[0].GLVendor="ATI Technologies Inc."
    glgpu[0].GLVendorID=4098
    glgpu[0].GLDriverVersion="8.850.0.0"
    glgpu[0].GLRectTextureSize=8192
    glgpu[0].GLRenderer="ATI Radeon HD 4800 Series "
    glgpu[0].GLRendererID=37952
    glgpu[0].HasGLNPOTSupport=1
    glgpu[0].GLDriver="aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atium d64.dll,atidxx64.dll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm6 4.dll"
    glgpu[0].GLDriverDate="20110419000000.000000-000"
    glgpu[0].CanCompileProgramGLSL=1
    glgpu[0].GLFrameBufferOK=1
    glgpu[0].glGetString[GL_SHADING_LANGUAGE_VERSION]="3.30"
    glgpu[0].glGetProgramivARB[GL_FRAGMENT_PROGRAM_ARB][GL_MAX_PROGRAM_INSTRUCTIONS_ARB]=[2147 483647]
    glgpu[0].glGetIntegerv[GL_MAX_TEXTURE_UNITS]=[8]
    glgpu[0].glGetIntegerv[GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS]=[32]
    glgpu[0].glGetIntegerv[GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS]=[16]
    glgpu[0].glGetIntegerv[GL_MAX_TEXTURE_IMAGE_UNITS]=[16]
    glgpu[0].glGetIntegerv[GL_MAX_DRAW_BUFFERS]=[8]
    glgpu[0].glGetIntegerv[GL_MAX_VERTEX_UNIFORM_COMPONENTS]=[16384]
    glgpu[0].glGetIntegerv[GL_MAX_FRAGMENT_UNIFORM_COMPONENTS]=[16384]
    glgpu[0].glGetIntegerv[GL_MAX_VARYING_FLOATS]=[128]
    glgpu[0].glGetIntegerv[GL_MAX_VERTEX_ATTRIBS]=[29]
    glgpu[0].extension[AIF::OGL::GL_ARB_VERTEX_PROGRAM]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_PROGRAM]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_VERTEX_SHADER]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_SHADER]=1
    glgpu[0].extension[AIF::OGL::GL_EXT_FRAMEBUFFER_OBJECT]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_RECTANGLE]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_FLOAT]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_OCCLUSION_QUERY]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_VERTEX_BUFFER_OBJECT]=1
    glgpu[0].extension[AIF::OGL::GL_ARB_SHADER_TEXTURE_LOD]=1
    License Type: Subscription
    Serial number: 96040090050480634073
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CC 2014\
    Temporary file path: C:\Users\Home\AppData\Local\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
    F:\, 2.73T, 1.89T free
    Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CC 2014\Required\Plug-Ins\
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CC 2014\Plug-ins\
    Installed components:
    A3DLIBS.dll A3DLIB Dynamic Link Library 9.2.0.112
    ACE.dll ACE 2014/08/12-23:42:09 79.557478 79.557478
    adbeape.dll Adobe APE 2013/02/04-09:52:32 0.1160850 0.1160850
    AdbePM.dll PatchMatch 2014/09/07-21:07:38 79.558079 79.558079
    AdobeLinguistic.dll Adobe Linguisitc Library 8.0.0
    AdobeOwl.dll Adobe Owl 5.2.4
    AdobePDFL.dll PDFL 2014/08/18-15:13:12 79.512424 79.512424
    AdobePIP.dll Adobe Product Improvement Program 7.2.1.3399
    AdobeXMP.dll Adobe XMP Core 2014/08/20-09:53:02 79.156797 79.156797
    AdobeXMPFiles.dll Adobe XMP Files 2014/08/20-09:53:02 79.156797 79.156797
    AdobeXMPScript.dll Adobe XMP Script 2014/08/20-09:53:02 79.156797 79.156797
    adobe_caps.dll Adobe CAPS 8,0,0,13
    AGM.dll AGM 2014/08/12-23:42:09 79.557478 79.557478
    ahclient.dll AdobeHelp Dynamic Link Library 1,8,0,31
    amtlib.dll AMTLib (64 Bit) 8.0.0.122212002 BuildVersion: 8.0; BuildDate: Wed Jul 30 2014 15:59:34) 1.000000
    ARE.dll ARE 2014/08/12-23:42:09 79.557478 79.557478
    AXE8SharedExpat.dll AXE8SharedExpat 2013/12/20-21:40:29 79.551013 79.551013
    AXEDOMCore.dll AXEDOMCore 2013/12/20-21:40:29 79.551013 79.551013
    Bib.dll BIB 2014/08/12-23:42:09 79.557478 79.557478
    BIBUtils.dll BIBUtils 2014/08/12-23:42:09 79.557478 79.557478
    boost_date_time.dll photoshopdva 8.0.0
    boost_signals.dll photoshopdva 8.0.0
    boost_system.dll photoshopdva 8.0.0
    boost_threads.dll photoshopdva 8.0.0
    cg.dll NVIDIA Cg Runtime 3.0.00007
    cgGL.dll NVIDIA Cg Runtime 3.0.00007
    CIT.dll Adobe CIT 2.2.6.32411 2.2.6.32411
    CITThreading.dll Adobe CITThreading 2.2.6.32411 2.2.6.32411
    CoolType.dll CoolType 2014/08/12-23:42:09 79.557478 79.557478
    dvaaudiodevice.dll photoshopdva 8.0.0
    dvacore.dll photoshopdva 8.0.0
    dvamarshal.dll photoshopdva 8.0.0
    dvamediatypes.dll photoshopdva 8.0.0
    dvametadata.dll photoshopdva 8.0.0
    dvametadataapi.dll photoshopdva 8.0.0
    dvametadataui.dll photoshopdva 8.0.0
    dvaplayer.dll photoshopdva 8.0.0
    dvatransport.dll photoshopdva 8.0.0
    dvaui.dll photoshopdva 8.0.0
    dvaunittesting.dll photoshopdva 8.0.0
    dynamiclink.dll photoshopdva 8.0.0
    ExtendScript.dll ExtendScript 2014/01/21-23:58:55 79.551519 79.551519
    icucnv40.dll International Components for Unicode 2013/02/25-15:59:15 Build gtlib_4.0.19090
    icudt40.dll International Components for Unicode 2013/02/25-15:59:15 Build gtlib_4.0.19090
    igestep30.dll IGES Reader 9.3.0.113
    imslib.dll IMSLib DLL 7.0.0.154
    JP2KLib.dll JP2KLib 2014/06/28-00:28:27 79.254012 79.254012
    libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
    libiomp5md.dll Intel(R) OpenMP* Runtime Library 5.0
    libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 12.0
    LogSession.dll LogSession 7.2.1.3399
    mediacoreif.dll photoshopdva 8.0.0
    MPS.dll MPS 2014/08/18-23:43:19 79.557676 79.557676
    pdfsettings.dll Adobe PDFSettings 1.04
    Photoshop.dll Adobe Photoshop CC 2014 15.2
    Plugin.dll Adobe Photoshop CC 2014 15.2
    PlugPlugExternalObject.dll Adobe(R) CEP PlugPlugExternalObject Standard Dll (64 bit) 5.0.0
    PlugPlugOwl.dll Adobe(R) CSXS PlugPlugOwl Standard Dll (64 bit) 5.2.0.46
    PSArt.dll Adobe Photoshop CC 2014 15.2
    PSViews.dll Adobe Photoshop CC 2014 15.2
    SCCore.dll ScCore 2014/01/21-23:58:55 79.551519 79.551519
    ScriptUIFlex.dll ScriptUIFlex 2014/01/20-22:42:05 79.550992 79.550992
    svml_dispmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 12.0
    tbb.dll Intel(R) Threading Building Blocks for Windows 4, 2, 2013, 1114
    tbbmalloc.dll Intel(R) Threading Building Blocks for Windows 4, 2, 2013, 1114
    TfFontMgr.dll FontMgr 9.3.0.113
    TfKernel.dll Kernel 9.3.0.113
    TFKGEOM.dll Kernel Geom 9.3.0.113
    TFUGEOM.dll Adobe, UGeom© 9.3.0.113
    updaternotifications.dll Adobe Updater Notifications Library 8.0.0.14 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 8.0.0.14
    VulcanControl.dll Vulcan Application Control Library 5.0.0.82
    VulcanMessage5.dll Vulcan Message Library 5.0.0.82
    WRServices.dll WRServices Fri Mar 07 2014 15:33:10 Build 0.20204 0.20204
    wu3d.dll U3D Writer 9.3.0.113
    Required plug-ins:
    3D Studio 15.2 (2014.2.0 x001)
    Accented Edges 15.2
    Adaptive Wide Angle 15.2
    Angled Strokes 15.2
    Average 15.2 (2014.2.0 x001)
    Bas Relief 15.2
    BMP 15.2
    Camera Raw 8.6
    Camera Raw Filter 8.6
    Chalk & Charcoal 15.2
    Charcoal 15.2
    Chrome 15.2
    Cineon 15.2 (2014.2.0 x001)
    Clouds 15.2 (2014.2.0 x001)
    Collada 15.2 (2014.2.0 x001)
    Color Halftone 15.2
    Colored Pencil 15.2
    CompuServe GIF 15.2
    Conté Crayon 15.2
    Craquelure 15.2
    Crop and Straighten Photos 15.2 (2014.2.0 x001)
    Crop and Straighten Photos Filter 15.2
    Crosshatch 15.2
    Crystallize 15.2
    Cutout 15.2
    Dark Strokes 15.2
    De-Interlace 15.2
    Dicom 15.2
    Difference Clouds 15.2 (2014.2.0 x001)
    Diffuse Glow 15.2
    Displace 15.2
    Dry Brush 15.2
    Eazel Acquire 15.2 (2014.2.0 x001)
    Embed Watermark 4.0
    Entropy 15.2 (2014.2.0 x001)
    Export Color Lookup Tables NO VERSION
    Extrude 15.2
    FastCore Routines 15.2 (2014.2.0 x001)
    Fibers 15.2
    Film Grain 15.2
    Filter Gallery 15.2
    Flash 3D 15.2 (2014.2.0 x001)
    Fresco 15.2
    Glass 15.2
    Glowing Edges 15.2
    Google Earth 4 15.2 (2014.2.0 x001)
    Grain 15.2
    Graphic Pen 15.2
    Halftone Pattern 15.2
    HDRMergeUI 15.2
    HSB/HSL 15.2
    IFF Format 15.2
    IGES 15.2 (2014.2.0 x001)
    Ink Outlines 15.2
    JPEG 2000 15.2
    Kurtosis 15.2 (2014.2.0 x001)
    Lens Blur 15.2
    Lens Correction 15.2
    Lens Flare 15.2
    Liquify 15.2
    Matlab Operation 15.2 (2014.2.0 x001)
    Maximum 15.2 (2014.2.0 x001)
    Mean 15.2 (2014.2.0 x001)
    Measurement Core 15.2 (2014.2.0 x001)
    Median 15.2 (2014.2.0 x001)
    Mezzotint 15.2
    Minimum 15.2 (2014.2.0 x001)
    MMXCore Routines 15.2 (2014.2.0 x001)
    Mosaic Tiles 15.2
    Multiprocessor Support 15.2 (2014.2.0 x001)
    Neon Glow 15.2
    Note Paper 15.2
    NTSC Colors 15.2 (2014.2.0 x001)
    Ocean Ripple 15.2
    OpenEXR 15.2
    Paint Daubs 15.2
    Palette Knife 15.2
    Patchwork 15.2
    Paths to Illustrator 15.2
    PCX 15.2 (2014.2.0 x001)
    Photocopy 15.2
    Photoshop 3D Engine 15.2 (2014.2.0 x001)
    Photoshop Touch 14.0
    Picture Package Filter 15.2 (2014.2.0 x001)
    Pinch 15.2
    Pixar 15.2 (2014.2.0 x001)
    Plaster 15.2
    Plastic Wrap 15.2
    PLY 15.2 (2014.2.0 x001)
    PNG 15.2
    Pointillize 15.2
    Polar Coordinates 15.2
    Portable Bit Map 15.2 (2014.2.0 x001)
    Poster Edges 15.2
    PRC 15.2 (2014.2.0 x001)
    Radial Blur 15.2
    Radiance 15.2 (2014.2.0 x001)
    Range 15.2 (2014.2.0 x001)
    Read Watermark 4.0
    Render Color Lookup Grid NO VERSION
    Reticulation 15.2
    Ripple 15.2
    Rough Pastels 15.2
    Save for Web 15.2
    ScriptingSupport 15.2
    Shake Reduction 15.2
    Shear 15.2
    Skewness 15.2 (2014.2.0 x001)
    Smart Blur 15.2
    Smudge Stick 15.2
    Solarize 15.2 (2014.2.0 x001)
    Spatter 15.2
    Spherize 15.2
    Sponge 15.2
    Sprayed Strokes 15.2
    Stained Glass 15.2
    Stamp 15.2
    Standard Deviation 15.2 (2014.2.0 x001)
    STL 15.2 (2014.2.0 x001)
    Sumi-e 15.2
    Summation 15.2 (2014.2.0 x001)
    Targa 15.2
    Texturizer 15.2
    Tiles 15.2
    Torn Edges 15.2
    Twirl 15.2
    U3D 15.2 (2014.2.0 x001)
    Underpainting 15.2
    Vanishing Point 15.2
    Variance 15.2 (2014.2.0 x001)
    Virtual Reality Modeling Language | VRML 15.2 (2014.2.0 x001)
    Water Paper 15.2
    Watercolor 15.2
    Wave 15.2
    Wavefront|OBJ 15.2 (2014.2.0 x001)
    WIA Support 15.2 (2014.2.0 x001)
    Wind 15.2
    Wireless Bitmap 15.2 (2014.2.0 x001)
    ZigZag 15.2
    Optional and third party plug-ins: NONE
    Plug-ins that failed to load: NONE
    Flash: NONE
    Installed TWAIN devices: NONE
    http://feedback.photoshop.com/photoshop_family/topics/using-text-tool-freezes-photoshop-cc -2014-2-0-20140926-r-236-x64-release/replies/14873829 

    Check out this other thread I started
    http://feedback.photoshop.com/photoshop_family/topics/using-text-tool-freezes-photoshop-cc -2014-2-0-20140926-r-236-x64-release?utm_source=notification&utm_medium=email&utm_campaign =new_reply&utm_content=reply_button&reply[id]=14914157#reply_14914157
    There it's help there.  I've not totally solved my problem but others seemed to have.
    Richard

  • Does the Jar Tool work on Windows XP Pro?

    Hi, I have a Windows XP Pro machine and I installed jdk1.3. But I can't seem to get the jar tool to work. The directory bin has all java compiler, jar tool, javadoc, and other tools. When I go to the command prompt to try to use the jar tool, it just says "the name is not specificed as an internal or external command, operable program, or batch file. Does anyone know why I can't run the jar tool in MS-DOS?

    Hi, yeah autoexec.bat is not used anymore. XP has to set the environment variable in system properties just like Windows 2000. Is something in the classpath variable I have to set to use the jar tool?
    Currently my classpath has:
    .;c:\jdk1.3\corejava
    It's just the current directory and the corejava library from my book. Do I have to add c:\jdk1.3\bin to it? Since javac, jar.exe are located in that folder or am I wrong?
    Thanks for your help.

  • Failed to export using the options you specified. Please check your options

    Hi..
    i was using crystal report10.5 with visual studio 2008(c#)..
    now im migrated to visual studio 2010....and i have installed these setups http://www.sdn.sap.com/irj/boc/crystalreports and http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet ...
    when i open my project it will ask to convert crystal reports and i have converted ...reports are working fine but in tool bar if i click and select a pdf format to export it will display a error message Failed to export using the options you specified. Please check your options and try again. and if i click on print button it is not working(i have set printmode=pdf)...when i was working on vs2008 both were working fine but in vs2010 it is not working..

    Hello,
    What type of app you are using? A win app will not have this option. Also what FW are you using? Have you made changes to the viewer(after migrating) and ensure that you are using the 13.0.2000.0?
    Take a look at [this|Export and print problem; thread, also.
    Thanks.

  • Using .jar files

    I was able to use .jar files in Java programs that I write on my computer. I could write a program that used an import statement to bring in classes contained in a .jar file.
    One day, I was trying to incorporate a jar file folder directly into my windows operating system by using the environmental variable called CLASSPATH. Unfortunately, I made the mistake of screwing up my PATH variable. I fixed my PATH variable back up by adding the directory to the bin folder inside of the Java folder as is described commonly by the documentation for installing the Java SE on windows computer.
    Since that day, I have not been able to use .jar files using an import statement. My computer is unable to find the .jar files even if I specify the exact directory. Even the IDE(netbeans) that I use is unable to find and use .jar files. I have found that I can open up .jar files and pull the contents that I need out of said .jar files, but I have a project that does not allow me to open up the .jar files and extract the needed classes.
    I have googled this problem so much that I have read hundreds of posts about .jar files, and I cant find anyone in a situation that is similar to mine. If I take my files to another computer with Java SE installed, then my source code can access the .jar files just fine. For some reason, my work computer seems to hate using .jar files. I have no idea what could be the problem. There is no information in the java documentation on troubleshooting with this problem, and the most confusing part is that it worked perfectly fine until That one day
    Does anyone have any ideas?
    Specific technical details:
    I need to pull the Stopwatch.class file from a stdlib.jar file. In the past I had done this by using an import statement inside of my program:
    "import stdlib.Stopwatch; "
    Using this command to compile:
    "javac -cp .;(directory path to .jar file); source.java"
    This used to work. Now when using the javac command I get error messages
    1. Error points directly to import statement. Arrow directed at the period after stdlib.
    "cannot find symbol"
    2. Error message pointing to all instances of the class that I was attempting to import into my program.
    Thanks for reading
    Edited by: 955611 on Aug 28, 2012 7:22 PM

    I read your post. I want to compile this project by using the "-classpath" option in the javac command. After screwing up important system variables once, I do not want to continually have to play with system variable in order to compile projects. To quote from the website that you linked:
    Using the JDK tools' -classpath option
    The JDK tools java, jdb, javac, and javah have a -classpath option which replaces the path or paths specified by the CLASSPATH environment variable while the tool runs. This is the recommended option for changing class path settings, because each application can have the class path it needs without interfering with any other application.
    The runtime tool java has a -cp option, as well. This option is an abbreviation for -classpath.
    For very special cases, both java and javac have options that let you change the path they use to find their own class libraries. The vast majority of users will never to need to use those options, however.
    Clearly, the "-classpath" option in the javac is intended to replace the need to play with important system variables. I guess my post boils down to the question of "Why doesn't this command work for me?". I followed your suggestion by removing the bin directories and adding the stdlib.jar directory directly into the system variable itself. Here is the following output from my command prompt:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Lelo>E:
    E:\>cd Programs\Java
    E:\Programs\Java>javac testy.java
    testy.java:1: error: package stdlib does not exist
    import stdlib.Stopwatch;
    ^
    1 error
    E:\Programs\Java>echo %CLASSPATH%
    C:\Program Files\Java\jre6\lib\ext\QTJava.zip;E:\Programs\Java\stdlib.jar;
    E:\Programs\Java>javac -classpath .;E:\Programs\Java\stdlib.jar; testy.java
    testy.java:1: error: package stdlib does not exist
    import stdlib.Stopwatch;
    ^
    1 error
    E:\Programs\Java>
    I still received the same errors. It seems that even adding the directories into the system variable will not work for me.

  • Getting error while fetching Log data using B1TE Tools

    Hi,
    i am using B1TE Tools to test an add on which generating an error while fetching the Log File using DI Logs Reader. The error is below:
    "Wrong Xml file format. "The data at the root level is invalid, Line 1, position 1.".
    please report it on B1TE blog"
    Please help..
    Regards,
    Sunita

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

  • How to use deploy tool in AIA

    Hi ,
    I am using Tokenizer tool. I have followed the following link
    http://blogs.oracle.com/learnwithpavan/2009/09/deploy_using_the_deploy_tool_u.html.
    I am using ANT 1.7.0 comes with AIA installation.
    export AIA_HOME=/opt/webapps/oracle/product/AIA
    export ORACLE_HOME=/opt/webapps/oracle/product/SOAAS_10.1.3
    export PATH=/opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin
    export JAVA_HOME=/opt/webapps/JDK/jdk1.5.0_20/jre
    ant runesb -DTokenizerPropsFilePath=/opt/webapps/oracle/product/AIA/util/DeployTool/Tokenizer.properties
    following error i am getting
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: uname: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: basename: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: dirname: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    /opt/webapps/oracle/product/AIA/apache-ant-1.7.0/bin/ant: false: not found
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
    Please update if anyone has faced same issue

    Please check the ant home properly.
    do echo on ant_home. If this is not helping you.
    Please follow the steps below.
    Steps to deploy AIA Components:
    1. Navigate to the following location in the server.
         D:\product\10.1.3.1\AIA\util\DeployTool>
    2. Set env variable to AIA_HOME, ORACLE_HOME and ANT_HOME folder
         set AIA_HOME=D:\product\10.1.3.1\AIA\
         set ORACLE_HOME=D:\product\10.1.3.1\OracleAS_1\
    3. Make sure your process folder and it's artifacts are NOT read-only
    4. Copy the bpel projects and Esb project to the following locations.
         D:\product\10.1.3.1\AIA\util\DeployTool\BpelCopy
         D:\product\10.1.3.1\AIA\util\DeployTool\EsbCopy
    5. open and edit \Tokenizer\build.properties in a text editor and populate the below values
    aia.home= Path of the folder which contains BPEL and ESB processes that has to be tokenized.
    Make sure that above Path contains Forward slash.(/)
    If you are planning to deploy only one of the BPEL or ESB processes then leave the other path as blank.     
    DONT NOT MODIFY ANY OTHER PARAMETERS IN THIS FILE.
    aia.home=D:/product/10.1.3.1/AIA/util/DeployTool/BpelCopy/
    6. Go to command prompt and change the current directory to \Tokenizer
    7. For BPEL processes execute the command ">ant runbpel" and for ESB processes execute the command ">ant runesb"
         $ ant runesb -DTokenizerPropsFilePath=D:/product/AIA_HOME/util/DeployTool/Tokenizer.properties
         $ ant runbpel -DTokenizerPropsFilePath=D:/product/AIA_HOME/util/DeployTool/Tokenizer.properties
         Note: you can run with the AIA_HOME in the command doesn't matter.
    8. Goto $AIA_HOME/bin and source the AIA environment file - aiaenv.sh.
         This will source all the environment variables.
    9. Then run "ant" to deploy the process from the bpel project folder as below.
         D:\product\10.1.3.1\AIA\bin>aiaenv.bat
    10. D:\product\10.1.3.1\AIA\util\DeployTool\BpelCopy\XXX_CustomerSyncUEKProvAdapterServiceBPEL_V1>ant     
         Note: If you want to deploy to the different domain. Please change the domain name in the build.properties for the bpel process.
    Thanks,
    Vijay.B

  • Jar tool hangs

    Hello,
    I cannot extract a jar file's contents.
    The jar tool just hangs.
    Is my jar file corrupted?
    Thanks.

    Note: It will also hang if you don't use the command arguments correctly.

  • Exporting using Quicktime - but file never appears??

    Ever since I downloaded the latest iMovie '11 software update (9.0.7), every time I try to export using Quicktime, it takes two hours to export, shows no error messages of any kind, but the exported film NEVER shows up where I saved it to (or anywhere else on my computer). Has anyone else had this problem?
    I can't export using any of the other options because the film is so large (the Quicktime export compresses it enough to upload to Vimeo, while exporting it straight to Vimeo does not). The Quicktime export (and all the settings still in place) worked perfectly before I installed the 9.0.7 update.
    I need to get this film off my computer pronto. Please help???

    Hi Mike:
    Apologies for the long delay in response; have been working on other things of course.
    I don't know how to use OS X's postscripting feature, but I did try and succeeded in creating a .ps file. When I try to open the file, however, it tells me there is a postscript conversion error and the file cannot be converted to pdf.
    Manually distilling the file is exactly where the problem arises.
    For giggles, I tried to select the OS X's pdf'ing feature instead of postscript or distilling, and it worked instantly! The dimensions are correct when I open it up, and the file size is large enough to indicate to me that the resolution is likely sufficiently high. I would not know for sure of course until finding out the hard way after sending it to the printers, but it seems to be a use-able file.
    So, it seems that this is a pseudo-solution, at least so that I have a tool to bypass the problem when I next encounter it; however, I wonder if you have any ideas about how to actually fix the glitch? Does it have to do with the sorts of images that reside in the KeyNote file; if so, which file types does pdf not like and should be avoided?
    Thanks,
    Heide

  • Jar tool and distributing with jre

    I want to be able to use the jar tool in software I'm supplying. I don't want my clients to have to install a java sdk just to use this - the jre is as much as I can ask them to install.
    Firstly, is it technically possible to supply the jar.exe file to work with just the jre, or are there too many dependancies on sdk components?
    Secondly, would I be violating Suns agreement by doing this?
    thanks.
    Steve

    Do you want your clients to actually use the JAR tool themselves, or is your software just calling the JAR tool to run it?
    You can do everything that the JAR tool does from a Java program with the classes in the package java.util.jar, so it's quite easy to write a Java program that handles JAR files, without needing jar.exe.
    If you want to know if you're violating Sun's license agreements....: you'll have to read those license agreements very carefully.

  • EXPORT DDL from TOOLS menu in Rel 4

    I am trying to use the tools->export-> objects--> tables option to extract DDL from tables
    I have given the file name to save in options. After clicking APPLY nothing is happening.
    File is created with 0 bytes

    I do have a similar issue with the export function. Below is all of the
    information - downloaded today (Fri, 17-Feb-06 and am current with
    updates).
    The Export is not creating the expected DDL script; output file was
    created with 0 bytes.
    Other than that I like what I see in SQL Developer.
    Thank you,
    Jeff
    Downloaded          Fri, 17-Feb-06; current updates downloaded also
    SQL Developer          1.0.0.11
    Version               1.0.0.11.84
    Build Main          11.84
    JAVA               1.5.0_05
    Oracle IDE          1.0.0
    Oracle SQL Developer     10.1.3.1215
         Reports     10.1.3.1215
    Raptor Help          10.1.3.02.60
    SQL Formatter          10.1.3
    DB Version          9.2.0.6.0
    Tools -> Export -> Options - file=c:\temp\absences_test.sql; checked-storage,
                   pretty print, constraints as alters
              -> Objects - Connection-DEV2; check table ABSENCES;
         then Apply -- no output
    expected DDL for a partitioned table with
    local bitmap indexes, global b-tree indexes (PK, UK, and FK)
    OS Name     Microsoft Windows XP Professional
    Version     5.1.2600 Service Pack 2 Build 2600

Maybe you are looking for

  • Error while Loading Budgets Using AMG

    Error while Loading Budgets Using AMG Dear All, I am trying to load Budgets into ORACLE Projects using AMG API's.. I have developed PL/SQL which uses below procedures of pa_budget_pub package. init_budget; load_budget_line; execute_draft_budget; base

  • How can i save my music and pictures on the apple tv?

    i have just got an apple tv and have got my libraries up from my pc but as soon as i close itunes on my pc it stops/disappears from the tv. am i doing something wrong? or have i missed a step? also i have a playlist on my iphone but its not showing i

  • Standard and Moving average Price

    Hi,     What is the Difference between Standard and Moving Avg Price, What are the Cases will we use Standard  Price ,and what are cases shall we use Mov.avg Price, Please Explain me with Example.

  • How to get icon for hardrive(s) to show up?

    Hi--How do I get the icons for hardrive(s) to show up? Odd. Thanks!

  • New to java - glitch in my program/game? should be a simple fix :)

    hey everyone, I'm a student who's new to java programming :) It's is also the first programming language that I'm learning. I know the basics, but nothing very complicated. I'm making a pong-like game, in an applet. As I was making the paddle and usi