Missing something on JAR creation.

This must be a simple error I'm commiting but it has me stuck on the distribution of my application.
Even though my app works perfectly on prompt I don't seem to be getting the right works for making the jar file for it.
My class files are distributed like this :
Salfoot
Salfoot/Interface
Salfoot/Classes
in the root dir there is only the entry point program that then calls a start frame , etc...
the following code is contained in this file
prmSalfoot.java
import javax.swing.*;
import Salfoot.Interface.frmLogin;
public class prmSalfoot
     frmLogin login;
     public static void main(String[] args)
          JFrame login = new frmLogin();
          login.show();
The manifest file is as follows :
Manifest-Version: 1.0
Main-Class: prmSalfoot
The jar file is generated with the following command :
jar cmfv manifest salfoot.jar prmSalfoot.class Interface/*.class Classes/*.class
The following command is how I'm executing the jar file :
java -jar salfoot.jar
And the following error is what is outputted :
Exception in thread "main" java.lang.NoClassDefFoundError: Salfoot/Interface/frmLogin
What I think is... that the entry-point program is found... but the classes in the packages used are not.
What special treatment do I need to do with the packages? Is it in the manifest file that I need to make changes? Or should I make separate JAR files for each of the packages and then make a main JAR including the package JARs?
Thanks for any enlightment.
Y.S.

From my understanding you don't need to have all the
packages in the one jar file.
The VM builds the class path from the Class-Path attribute
specified in the manifest file. to specify files outside
the main jar file set the Class-Path as follows.
Class-Path: g:\server\Server.jar ..\server\Server2.jar
this will access classes in the these jar files.
One thing that I've found with this is that if the
classes in these external jar files are in packages
then a class not found error is thrown but if they are
just classes not in packages this works find. I'm still
doing some experimenting with this as I've only started
using jar files.
Any thoughts?????

Similar Messages

  • JAR creation failed , for Command bean DC

    Hi Experts,
    I am trying to access an EJB module DC from WebDynpro through Java bean model DC.
    In this when i tried to create a Jar file of the Java bean model, i got this error.
    JAR creation failed. See details for additional information.
    Problem writing /LocalDevelopmentdc_aptcbsap.com/bin/pg/com/atos/apt/bean/APTCommandBean.class to JAR: duplicate entry: pg/com/atos/apt/bean/APTCommandBean.class
    I have created in all total 4 DC
    1) EJB DC
    2) EAR DC
    3) Java bean DC
    4) WebDynpro DC
    I have reffered to the tutorial : Using EJBs in Web Dynpro application.
    Can you tell me what am i missing?
    Ashish Shah

    Hi Sridhar,
    Thanks for your suggestion.
    I have built and deployed the EAR DC.
    But When I added the following referencesto Java bean DC
    1) EAR DC , EJB DC
    2) ejb20.jar
    and i tried to build java bean DC project, it throws error for these referenced DC.
    And these referenced DCs are removed from the project.
    Do i have to add anything in the Public part of EJB or EAR DC?
    Can you tell me how to add those references in Public part and how to utilise them in other projects?
    Regards,
    Ashish Shah

  • Annotations missing from toplink.jar

    The download of Toplink 11g includes the toplink.jar along with a few other jar files and a source .zip file. The toplink.jar does not include the oracle.toplink.annotations package which is necessary to use the @Convert and @Converter annotations for working with datatypes Toplink does not already understand. These classes are included in the source distribution. Am I missing something? Do I need to build the jar file from source to get the annotations package or is this available in another jar file?
    Thanks,
    Scott Akins

    The TopLink 11g release has a toplink.jar which delivers native ORM/OXM/EIS functionality focused on backwards compatibility with previous releases (uses the oracle.toplink.* packaging).
    The release also includes the EclipseLink libraries where all of the annotation support is delivered focused on implementing JPA with annotations and extended XML configuration. If you want to use JPA and our advanced annotations you should be using the included EclipseLink library.
    Doug

  • Weblogic.jws.Policies.class is missing in weblogic.jar and wlfullclient.jar

    Hi,
    I am trying to upgrade Weblogic from 9.1 to 10.3.2 or 10.3.3
    In Weblogic 9.1, our application used weblogic.jar in our classpath.
    After we installed Weblogic 10.3.3, the new weblogic.jar can be found in: <WLS_HOME>\wlserver_10.3\server\lib
    However, some class files are missing and we realized we need to manually generate wlfullclient.jar and use this jar file instead.
    Reference: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/client/jarbuilder.html
    The problem is that in Weblogic 10.3.3, the following class files are missing inside weblogic.jar and wlfullclient.jar
    - import weblogic.jws.Policies
    - import weblogic.jws.Policy
    Hence, our application is getting an "The import weblogic.jws.Policies cannot be resolved" error in our code.
    I look inside both weblogic.jar and wlfullclient.jar, weblogic.jws.Policies and weblogic.jws.Policy cannot be found.
    This is not an issue in Weblogic 10.3.2. These two classes can be found in wlfullclient.jar
    Any idea where I can find these class files for Weblogic 10.3.3 or something we are doing is incorrectly?
    Thanks
    Toan

    Hi,
    This missing classes can be found inside the JAR : *"E:\bea10_3_3\wlserver_10.3\server\lib\wseeclient.jar"* As well as inside *"E:\bea10_3_3\wlserver_10.3\server\lib\wls-api.jar"*
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic/webservices/ (WebLogic Wonders Are Here)

  • Programatic JAR creation

    I am trying to create a JAR file with the java.util.jar library/package.
    I am able to create the file and get files into it but I am unable to access it from a java program.
    If i create the same jar file with the commandline utility i can access it just fine from within a java app. The two jars are identical in their content and structure however they differ in overall size of about 5-10K. Is there something special i need to do to make this jar useable by java? is the API in adequate for this kind of thing? are there any alternatives?
    -ChazZ

    the code for JAR creation:
    "files" is an arraylist i build that consists of paths to the files i wish to put in the jar
                FileInputStream fi = new FileInputStream("." + PATH_SEPARATOR + "MANIFEST.MF");
                Manifest m = new Manifest(fi);
                BufferedOutputStream bo = new BufferedOutputStream(new FileOutputStream(jarFile));
                JarOutputStream jo = new JarOutputStream(bo, m);
                Object[] f = files.toArray();
                for(int x=0; x<f.length; x++)
                    String act = (String)f[x];
                    BufferedInputStream bi = new BufferedInputStream(new FileInputStream(act));
                     //file paths are too deep in filesys to i strip off the first part of the path
                    JarEntry je = new JarEntry(act.substring(act.lastIndexOf("psdi")));
                    jo.putNextEntry(je);
                    byte[] buf = new byte[1024];
                    int anz = -1;
                    while ((anz = bi.read(buf)) != -1)
                      jo.write(buf, 0, anz);
                    jo.flush();
                    jo.closeEntry();
                    bi.close();
                jo.close();
                bo.close();
            }

  • I have just tried to connect my Mac book pro to an LG Plasma TV via an iWires Mini DisplayPort to HDMI cable. All I get on my TV is the Mac wallpaper and nothing else. I am missing something really silly, could anyone help please.

    I have just tried to connect my Mac book pro to an LG Plasma TV via an iWires Mini DisplayPort to HDMI cable. All I get on my TV is the Mac wallpaper and nothing else. I am missing something really silly, could anyone help please.

    Hi there. I also bought an iWires mini Display port to HDMI cable and have an LG LED/LCD TV. I plugged it in to my MB Pro and followed the very small writing that came in the package and got both audio and video going. You need to change the audio settings from within System Preferences on your Mac to select your TV as the audio output.
    My concern is the data latency - do you experience a delay between moving your mouse on the MBPro and the TV displaying the movement? It is only a fraction of a second, but certainly enough to be annoying, especially in a cable as expensive as the iWire.

  • HT2792 Just purchased from an airport store the MagSafe Airline Adapter so I could use my MacBook Air on a long haul flight. But, the airline adapter plug doesn't fit the socket. Am I missing something?

    I purchased at the airport last week before a long haul flight the MagSafe Airline Adappter so I couod keep working on the MacBook Air without fear of the battery running out before I had completed the necessary work. The shop assistant assured me the kit worked on all planes but......the socket on the flight, both outbound and inbound, was the normal female 2 pin/3 pin socket that I used to use for my old thinkPad. What am I doing wrong? Am I missing something obvious here
    Thanks for any help you can offer.
    Geoff

    Hi CaptFred,
    Thanks for taking the time to respond. I understand your point and have indeed separated them. Since sending the message I have visited the Apple Store to check the picture of the accessory in case I was missing something and I wonder if I am missing the 20mm adapter but, over and above that, I just dont see the right size/shape empower port socket in the plane seat, only the traditional 3 pin/2 pin sockets. I wonder if the salesman was selling me a pig in the poke because the Apple Store also says that it fits some commercial airlines whereas the salesman told me it worked in all flights. I suspect I will need to go to the airline companies direct to see which planes have this particualr Empower port. In the meantime I am tempted to ask for my money back. Geoff

  • For the love of Jeebus, please tell me I am missing something with PP's janky audio workflow

    OK, I've read the help docs, gone through the tutorials, watched the videos.  Still I am not finding an efficient workflow for dealing with audio in PP.  Let's face it, audio in 5.5 was completely baffling to us newbies jumping ship from FCP 7, and I thought the CS 6 update was going to simplify things.  No dice.  As I am a somewhat recent transplant, I am willing to admit that…. wait, nay, I'm HOPING that I am probably missing something here and that it's just stupid operator error.  Fingers crossed.
    Here's my situation.  I am editing a documentary that has hundreds of hours of footage and thousands upon thousands of clips.  We are working with three different kinds of audio: stereo, mono 1 & 2 (interviews with a lav mic on channel 1 and boom on channel 2) and mono (interview on channel 1 with lav microphone only).  Here's my problems: 
    If I set the audio so that they're all stereo clips
    Then I'm running into problems with the mono 1 & 2 tracks.  Say the boom audio is better on the right channel, and I want to silence the left.  I turn the left channel off.  Then I want the boom audio to be on both channel's equally… well, I can't figure out a way to do that.  In FCP, I would just put the pan to center, and the audio would play the right channel's audio on both channels equally.  With PP, panning does nothing but adjust how much of the boom is heard, as opposed to how much the lav (now silent) is heard.  I can't find a way to pan the boom to the center, so that it is heard equally on both channels.
    If I set the audio so that they're all mono 1 & 2 clips
    Doing this solves the boom/lav problem as listed above, as the mono tracks seem to center pan and play on both channels equally, so simply deleting the lav works well.  However, now if I have a stereo song that I want to keyframe some fades in (say a music bed playing in the background that I want to fade lower when a person starts talking)… now I have to pen tool in keyframes for the left track AND the right track separately, try to get the fades to match on each track, then separately fade the audio back in for each track.  So essentially I've DOUBLED my work  for each of the tracks I've marked this way.
    As a note, I love having found this out the hard way, after editing a 20 minutes interview into bits and pieces scattered across my timeline, and then finding out I should have set the audio to Mono 1 & 2.  Easy enough, I thought, as I went back to the Project window, found the original clip, then went to modify the audio so it would work in my project.  I got the extremely helpful message that "Any changes you have made to the number of clips or the type of those clips will not be reflected in the existing timelines.  Do you want to continue?"  YEAH!  That's super.  You might as well have put "Making this change now will do nothing to help you.  You'll have to go back and edit everything again.  Do you want to continue?"  Great, Adobe, thanks.  Bang up job there.
    I was really happy about not having to transcode in PP like I used to have to do in FCP 7.  That was until I realized how the audio worked, and for the latest scene of this documentary  had to go through every clip/camera download to figure out how the audio had to be set-up before I could start editing.  Transcoding a big job used to take me a day.  Configuring the audio in PP for this one scene took two. 
    I would be the happiest person on the planet to find out that I've been wasting my time and that there is a simple solution for all of this.  Hope someone can point me in the right direction and thanks for any help!

    I'm not suggesting any of this as a model, and your needs are different than mine.
    1) Go to Preferences -> Audio.  Under "Default Audio Tracks", Set "Mono Media: Mono".  Set "Stereo Media: Mono"  (Choices from the pull-down for both are Use File, Mono, Stereo, 5.1, Adaptive)
    You can change these, but I don't. I am using both mono and stereo tracks. I set up a custom sequence with the particular combination of stereo and mono tracks I want.
    2) Set audio for clips by selecting all clips and going to Modify Clip -> Audio Channels Tab.  Under "Number of Audio Tracks" there should be a "1".  Under Channel Format it should read "Stereo".
    I am not sending the audio to anyone else to edit further. I am doing a final stereo mix. If camera one is set up to record 2 mikes as a stereo track, then I leave that unchanged and put it onto a stereo track. If camera two is set up to record one mike onto channel 1 as ambient sound and channel 2 is a mono feed from a sound board, then I modify those clips as Preset Mono, 2 audio tracks, Channel format Mono, and that puts the left source channel (or whichever I choose) onto Audio track 1, channel 1 (of one), and right source channel onto audio track 2, channel 1.
    4) Delete all the existing audio tracks in the sequence and replace them all with mono tracks, so all tracks in the sequence are mono.
    I modify the tracks while creating the sequence, and ultimately use a custom sequence.
    Under my Effects Controls panel there is only Channel Volume, and nowhere to adjust the pan.
    I'm using the mixer, not the effects control panel.

  • IPod (music) app on the iPad is terrible, or am I missing something?

    I think the iPod app on the iPhone is pretty great, but the iPod app on the iPad 2 is really, really awful. Am I missing something? My main issue with it is that you can't browse by genre. There is a Genre tab at the bottom, but when I tap then and then tap a genre, instead of getting a list of artists in that genre, what I get is a little popup window that lists every song by every artist from every albums within that genre. It's completely worthless. On the iPhone I can tap a genre and then see the artists in that genre. Tap an artist and I see the albums by that artists, then I can tap on a specific album and then play it. That's what I want to do. Is there some way to do this with the iPad version that I'm missing?
    Even the Artists tap is far from ideal. If you tap that you do see all of the albums by that artist, but they are all listed in one popup window and you can't tap an album and just see the tracks on that album and just play that album. You can start playing on a certain album, but when that's done it will go onto the next album in the list, and that's not what I want.
    Is there any way to get the iPhone's iPod app behavior that I like?

    I agree. It is certainly one area that can be significantly improved on the iPad.
    Send feedback to Apple on it.
    http://www.apple.com/feedback/iPad.html

  • I'm having trouble scheduling a "repeat" for an appointment that recurs, e.g., "the second Thursday of each month," rather than on a specific date.   It seems that it can only repeat a given date.  Am I missing something??

    For iCalendar:  Is there a way to schedule a repeat for an event that repeats, e.g., "the 2d Thursday of the month."?  All I see are options that will repeat (every day, month, year, etc.) on a given date.  Am I missing something?

    loyev1,
    There should also be a "Custom..." selection in the (every day, month, year, etc.) drop down menu. Select "Custom..."
    Then:

  • I've had an iWeb site running for 4 months and I publish a monthly newsletter. Since August I've been unable to republish. The test connection under FTP settings works but I get an error message when I try to upload newsletter. Am I missing something mis

    I've had an iWeb site running for 4 months and I publish a monthly newsletter. Since August I've been unable to republish. The test connection under FTP settings works but I get an error message when I try to upload newsletter. Am I missing something?

    Where are you hosting the site a what are you using to upload the site files to the server?
    OT

  • My ipod touch used to sync on my old Hp laptop but now it's not even recognized as a device but will still charge on my new asus windows laptop. Itunes on my old laptop is missing something and won't work and I've reinstalled itunes on the HP already.

    My ipod touch used to sync on my old Hp laptop but now it's not even recognized as a device but will still charge on my new asus windows laptop. Itunes on my old laptop is missing something and won't work and I've reinstalled itunes on the HP already. Could somebody please help me to get my ipod touch to sync on the Asus laptop please?!

    Hello hieunguyen2012,
    The following article can help get your iPhone to appear in iTunes on your new laptop.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
    Allen

  • Ive downloaded the latest version of itunes and now i cant open itunes. it says im missing something but when i go to download it again just to be safe it keeps saying the same thing and i cant open my itunes anymore

    I cant open my itunes. it said i needed to download the 10.5.2 version to be able to upload the songs to my new ipod (touch) and when i went to do that my itunes wont open at all. me and my mom tried everything. i even went on my brothers account to get at least some songs and his did the same thing even though i didnt download it to the newest version. after i downloaded the lastest version and tried to open my itunes it said it was missing something so i went and downloaded it again. i know that was probably bad to do but i didnt know what else to do. even though i went and did that it keeps saying that im missing something. i dont know what to do to get my itunes to work again and if ill have to redownload all my songs and videos again.
    Pleas help.
    Thanks much,
    Sammii

    Plug your iPod into your computer, it will begin to sync. Now check to see if the playlists have been added.
    If not, go to the songs tab under your iPod when it is connected to iTunes, Unless you have checked "Sync all songs (or something to those words)" you should have an option on what you can put on your iPod. Make sure to check the playlists that you want on your iPod.

  • Did I miss something in the fine print? I installed Lion and and come to find out, I can no longer open any Word documents or Excel spreadsheets as they are no longer supported (being PowerPC apps).  Seriously?!?!?!?!!   What are my alternatives?

    Did I miss something in the fine print? I installed Lion and and come to find out, I can no longer open any Word documents or Excel spreadsheets as they are no longer supported (apparently because they are PowerPC apps).  Seriously?!?!?!?!!   What are my alternatives?

    Hi Mary and Matthew
    You might find it helpful to "try before you buy" - there is a 30 day free trial offer for Office for Mac 2011, accessible from M's .com website.
    You may be able to use this period to open and resave your old documents in a format that enables you to switch instead to using Apple's iWorks apps moving forward.
    I initially intended to do something similar, but ended up buying Office as it provided an easier way (for me, at least) to continue working with years worth of old emails, letters, spreadsheets and other documents (from my PC days) without risking damage to their integrity, formatting, etc.

  • Missing something obvious

    I am using nigpib version 6 with RedHat Linux 6.2. I am having problems talking to my instruments. Two devices a Keithley Multimeter 2001 and an IO TECH dac488hr refuse to communicate. Their remote lights go on but I get an EBUS error when doing ibwrt to either. Two other devices an SRS850 lockin amplifier, and an ESI model 73 precision transformer respond to commands well enough but I get an EAB0 error returned. I recognize the problems have to do with timeout. I have changed ibtmo to various settings but continue to get errors. I have tried to be careful setting the EOS and EOI attributes for each device but clearly I am missing something. Any suggestions?
    In the past I used the LLP gpib driver and don't recall gett
    ing these kinds of problems. I was going to port over my old code to talk with the instruments but I see that there is some rather sigificant differences in the way you do business. For one under LLP Clausi set up a /dev/gpib0/master device through which commands were passed. In addition he had a /etc/gpib.conf file and loaded his module via insmod in rc.d. You, on the other hand, set up /dev/gpib, /dev/gpib0, /dev/gpib1/, /dev/gpib2, /dev/gpib3, /dev/gpibdebug and /dev/dev0 /dev/dev1 etc (where dev# is a device configured with ibconf). What are the relationships between your strategies? What must I do to port my old software to my newer linux OS and use your drivers rather than those from LLP?
    I could really use some insights. Any comments (sans flaming ;-) would be welcome.

    I tried this but with no success. I called the help line and spoke with Ben P. and Armando V. they walked me through the ibic and ibconf tools, again, with no success.
    I spoke with the vendors of the instruments which are giving the EBUS error. They walked me through the setups (especially wrt to EOS and EOI). They were confused as to why the instruments failed to respond.
    With my last call to NI (SR#345883) the engineers suggested that I respond to this email and ask for further support. They requested/suggested I supply the following 3 pieces of information:
    1) revision of boards and part nos.
    2 ATGPIB-TNT boards vintage 1993
    assy 181830-01 REV. D
    1 ATGPIB-TNT PNP vintage 1995
    assy 182885E-01
    The implication was that NI might be able to provide an upgrade to the firmware if that was at fault.
    2) Capture of errors in ibic
    basically following your webpage for ibic works upto communicating with devices. Sample output follows:
    : ibfind gpib0
    id = 0
    gpib0: ibpad 0
    [0100] ( cmpl )
    previous value: 0
    gpib0: ibfind keithley
    id = 1002
    keithley: ibwrt "*IDN?\xA"
    [8100] ( err cmpl )
    <>
    error: EBUS
    count: 0
    keithley: ibrd 100
    [8100] ( err cmpl )
    error: EBUS
    count: 0
    <>
    keithley: ibfind ratio
    id = 1003
    ratio: ibwrt "Ratio 0.1234567\xA"
    [c100] ( err timo cmpl )
    error: EAB0
    count: 16
    <
    the ratio, as verified by the display >>
    ratio: ibrd 100
    [e100] (err timo end cmpl )
    error: EAB0
    count: 17
    52 61 74 69 6f 20 30 2e Ratio 0.
    31 32 33 34 35 36 37 30 12345670
    0a .
    using the SRS850 Lockin Amplifier has an added advantage. It will show the input and output queues on the screen. When I command this instrument I can watch as it receives its instructions. The commands are going through correctly (NOTE: this device also gives an EAB0 error).
    I have tried different cables, different machines, different DMA settings, different interrupts, different instruments, different ibtmo values, different cards, single devices on short cables, but keep getting errors.
    I have used the ibic webpage (setting ibsre 1, etc) and these work fine but the devices still complain.
    3) Give the version of Linux I am using...
    We are running Redhat 6.2, kernel version 2.2. We have older versions of the Linux OS which are running the LLP gpib driver for the SAME devices and it works fine. I would rather not go back to older versions if possible, besides since NI has done the Linux gpib driver, it appears that LLP has dropped support. In particular, I cannot get their drivers to compile in Redhat 6.2 and get no response from my emails. I would be willing to move to newer versions of Linux if that would solve the problem.
    I have confirmed the following:
    The ibtsta program says the driver is installed correctly (run without the gpib cable attached.)
    Interrupts, dma, iports are unique and without contention.
    The gpib card responds to commands (eg using ibic.)
    Some devices respond in a fashion, others fail. But all seem to receive signals from the computer.
    The instruments and cables attached to the system are sound.
    The gpib card, cables, and devices respond correctly from a dual boot machine running WinNT and Linux (i.e. no movement of cables, devices, or cards). On the WinNT side the recently downloaded NI drivers work and I can communicate (with the Keithley 2001) flawlessly.
    I am must now ask whether the driver is at fault. I understand the drivers are beta, but these appear to be the only workable drivers out there. ANY HELP WOULD BE APPRECIATED!
    >>

Maybe you are looking for