Workshop not finding all classes in jar.

I've added a jar to my application's Libraries but when I expend it not all of the public classes in the jar are visible. Within one package, for example, two public classes are and two aren't.
The same jar can be read fine by the Eclipse IDE and when I use WinZip I see all the class files, so I'm pretty sure the behavior is with Workshop. Are there settings with respect to Libraries I might be missing?

Is there a cleaner way to do this?No. You have to search for the classes in the file system (or JARs or whatever) if the class isn't already loaded.
- Marcus Sundman

Similar Messages

  • Jar file could not find main class.. I cant see why?

    I have read loads of tutorials on this and it should be very straight forward but i STILL cant make a working jar file of my program.. please see if you can see anything wrong with what im doing..
    my program is one .java file that compiles perfectly, and is runnable both through eclipse and by using the command prompt.. i made a jar file using both eclipse and the command prompt, and neither worked.. every time i run it by double clicking it i get the error "could not find main class, program will exit". here is the contents of my jar:
    CorePackage\IPEmailer.class
    CorePackage\IPEmailer$1.class
    CorePackage\IPEmailer$SMTPAuthenticator.class
    META-INF\MANIFEST.MF
    the MANIFEST.MF file contains:
    Manifest-Version: 1.0
    Class-path: .
    Created-By: 1.6.0_02 (Sun Microsystems Inc.)
    Main-Class: CorePackage.IPEmailer
    (yes there is a blank line at the end)
    the class mentioned in 'Main-Class' has a main method that looks like this:
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        new IPEmailer();
    }the program uses 2 external jar files:
    activation.jar
    mail.jar
    and reads a file called:
    ipemailer.ini
    and writes a file called:
    ip.txt
    the program has no GUI and is intended to run 'silently' in the background
    please help me understand what is wrong with this

    package CorePackage;
    import javax.mail.*;
    import javax.mail.Authenticator;
    import javax.mail.PasswordAuthentication;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    public class IPEmailer implements Runnable{
          * @param args
         String recipientsinput[]={""};
         String subject;
         String body;
         String server;
         String user;
         String pass;
         String from;
         String urlString = "http://www.whatismyip.org";
         String currentIP;
         String ipFromFile;
         boolean webFailed;
         long interval = 900000; //15 mins
         long oldInterval;
         Thread t = new Thread(this);
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              new IPEmailer();
         public IPEmailer(){
                         ..........etccould the problem be that the class is a thread? i cant see why it would be, but ive never made a jar where the main class also 'implements runnable'

  • JAR: - Could not find main class

    I'm sorry, I know this issue has been posted before but I am a bit confused with my situation.
    After making a jar on my computer, I run it, and the program loads and runs perfectly.
    However, when I try the jar on someone else's computer, it doesn't work, and gives the "could not find main class" message. The other computer has JRE but not JDK, so I don't know if that makes a difference.
    Anyways, my main class file is located in a package called hw2, and the whole project is located in a folder called HW2. So my class file is located in something like C:\School\HW2\hw2\Main.class.
    My Manifest.txt file is located in the \School\HW2 directory and has the following with a new line at the end:
    Main-Class: hw2.Main
    At the command prompt, I go to my C:\School\HW2 directory and I type the following to create the jar:
    jar cvmf Manifest.txt test.jar hw2\*.class
    My jar file has the following contents:
    META-INF/
    META-INF/MANIFEST.MF
    hw2/Bank.class
    hw2/GUIInterface.class
    hw2/Main.class
    Did I write the manifest.txt file correctly? Am I in the right directory when creating the jar file? Am I executing the jar command wrong? How come it works on my computer but not on someone else's?

    Are you certain you're executing the jar in the same way on both machines?
    For example, are you sure you're not executing the unjarred class files when you run on your local machine?

  • Can not find Main Class - Can't Run Application

    I have at this for a while and it is drivng me crazy... I have an application that I want execute in a bat file. I have checked the runtime environment by executing java and javaw, both which give option on error messages. I have set the classpath to point too the class subdirectory. Here it is.., Every time I execute the bath file or execute the javaw command, I get the "Can not find main class" message.
    I am using XP ...
    Help please...
    Thanks for all your help.

    when you set the classpath I presume you mean that your running java or javaw as:
    javaw.exe -cp %classpath%;.;c:\library\myfiles com.mycomp.myapp.MainClassIf your using a jar then you must specify the jar in the class path.
    Don't presume it will find the jar. Other than that, you will have
    to provide more details.

  • Could not find main class program will exit error while installing Oracle Client 32 bit on windows 7 32 bit OS?

    Hi Experts,
    When I am installing Oracle client 32 bit software on Windows 7 32 bit I am getting error as "could not find main class program will exit"
    I have tried installing latest Java software 7 also JDK 1.6.0_34 still I am getting the same problem below is my " oraparam.ini " details
    [Oracle]
    DISTRIBUTION=TRUE
    SOURCE=../stage/products.xml
    LICENSE_LOCATION=
    BOOTSTRAP_COMPS="oracle.swd.oui:11.1.0.6.0,oracle.swd.oui.core:11.1.0.6.0,oracle.jdk:1.5.0.1.1"
    JRE_SCRATCH_LOC=jdk/jre
    JRE_MEMORY_OPTIONS=" -mx96m"
    DEFAULT_HOME_LOCATION=product\11.1.0\client
    DEFAULT_HOME_NAME=OraClient11g_home
    NO_BROWSE=/net
    NLS_ENABLED=TRUE
    BOOTSTRAP=TRUE
    EXT_JLIB=../stage/ext/jlib
    OUI_VERSION=11.1.0.6.0
    ## JRE_VERSION is only for Windows. This is to copy accessbridge dlls
    JRE_VERSION=1.4.2
    ACCESS_DIR=../install/access
    #SHOW_HOSTNAME=ALWAYS_SHOW shows the hostname panel always
    #SHOW_HOSTNAME=NEVER_SHOW does not the hostname panel
    #SHOW_HOSTNAME=CONDITION_SHOW shows the hostname panel on condition
    SHOW_HOSTNAME=NEVER_SHOW
    #THIN_JDBC_FILENAME is optional and defaults to classes12.jar
    #The value specified for this should be packaged with OUI, and should
    #be relative to <OUI expanded stagedir>/jlib/
    THIN_JDBC_FILENAME=classes12.jar
    #RUN_OUICA specifies the batch script name that needs to be run
    #The script is ouica.bat for win32, and ouica.sh for solaris.
    #If the value is not specified, then the OUICA script is not run
    RUN_OUICA=ouica.bat
    CLUSTERWARE={"oracle.crs","10.1.0.2.0"}
    SILENT_VARIABLE_VALIDATION=TRUE
    [Generic Prereqs]
    MIN_DISPLAY_COLORS=256
    [IMAGES]
    FILE1=images/billboards.gif
    LICENSE_LOCATION=license.txt

    Duplicates of the other two times you asked this question:
    https://forums.oracle.com/thread/2559093
    https://forums.oracle.com/thread/2558027
    (and this time, your question does not appear to have anything to do with this particular forum space, either)
    Duplicate is locked.
    Do not EVER multi--post.   That is extremely bad forum etiquette.

  • Finding all classes in a path

    I am writing a utility in which I want to find all classes with a specifed pattern, i.e. "com.ourcompany.ut.*_UT". I know that I could recursively go through the directory com/ourcompany/ut and find files named "*_UT.class", convert the path info to a package name, and use Class.forName to load the class. Is there a cleaner way to do this?

    Is there a cleaner way to do this?No. You have to search for the classes in the file system (or JARs or whatever) if the class isn't already loaded.
    - Marcus Sundman

  • Why IE5 could not find applet class but Netscape can ?

    Hi,
    I have an applet which is running fine on Netscripts6,
    But not on IE5.
    <APPLET codebase="http://10.1.1.1/demo/" code="ClientApplet.class" HEIGHT=300 WIDTH=300>
    <PARAM NAME="relay" VALUE="1">
    I have all class files under demo directory(the same directory as html file).
    IE5.0 still could not find applet class but Netscript can.

    are you sure its failing to load your classes or is it failing to load a class you are using?
    Remember IE only uses things from 1.1 so simple things like component.getHeight() does not work you have to use size().height
    Its woth enabling the java console and viewing the exact problem.

  • Background callable object :  can not find this class name

    Hi All ,
                  I am following this tutorial link for creating background callable object
    http://help.sap.com/saphelp_nwce10/helpdata/en/9a/e8934258a5ca6ae10000000a155106/frameset.htm
    I have created java and enterprise application DC and deployed successfully. But while creating CO in design time when i am selecting application and entering class as com.examples.bckgco.UserDetailsCallableObject  for Implementation Class Name , and on click next i m getting exception as  "can not find this class name".       package and class name are correct still getting this excetpion message. Plz help me to resolve this solution.
    Regards
    Kavita

    Hi, kavita.
    First, make sure you choosed the correct container when you created the background CO.
    Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception  which you got just means you entered incorrect name.
    It doesn`t relate to your program.
    Best Regards.
    Louis Huang.

  • CAN NOT FIND MAIN CLASS

    Why after i have unzipped and edited the classes in the jar file and zipped them together again, it gives me the message "CAN NOT FIND MAIN CLASS"?
    This is after i have edited any class in the .jar zip.I did not edit the Manifest text file,can someone who has experienced this problem show me how to overcome it.
    Thank you.

    i think you have to read the "java tutorial on Jar files".
    i guess after you have exracted the .jar file then you've edited the ".class"(i dont know how you did it) but i think you mean ".java" you should create another .jar file to be able to reflect the changes you have made, then set the main-class attribute of the newly created .jar file.

  • Java server page compiler can not find a class defined in a java bean file

    I have a jsp file using java bean. The java bean class file is uploaded into the server and also the directory to this java bean .class file is included in the Unix environment CLASSPATH. This .jsp file is registered and should be compiled and excecuted automatically.
    WHen I try to invoke this .jsp file, the jsp compiler error, saying the class defined by java bean can not be found. I already include this path in teh CLASSPATH, I thought the jsp compiler will go to the right place according to CLASSPATH to find the referenced class.
    Can anyone tell me what I have done wrong or what should I do in order to allow jsp compiler to find the class refrenced by .jsp file and defined by java bean file?
    Thank you so much

    hello friends,
    i am also facing the same problem of not finding bean class files for both jsp and servlet though it is placed in same package. the problem of not finding bean class file for jsp is experienced in Tomcat server only whereas in Blazix, there is no such error and the file is compiled and runs successfully.
    i have checked Tomcat properly. there is no error in its configuration also servlets without the use of bean files run successfully. so please can anybody guide me about what is the problem and how to solve it. plz its urgent .

  • Link Checker not finding all errors

    Hi. I am running the link checker, but its not
    finding all my errors - does anyone know why? -- for example -
    links like "/products/index.html should be "../products/index.html
    -- but link checker is not flagging this as wrong.
    Also the opposite - if I have this "../../products/index.html
    - and it should be : "../products/index.html - it doesnt know its
    wrong.
    Help - I really wanted to implement my new site tomorrow -
    but I cant trust the results I am seeing right now.
    Shriley

    >
    Hi. I am running the link checker, but its not
    finding all my
    > errors -
    > does anyone know why? -- for example - links like
    "/products/index.html
    > should
    > be "../products/index.html -- but link checker is not
    flagging this as
    > wrong.
    Either link will work fine. Both point to EXACTLY THE SAME
    PLACE, assuming
    your file doing the linking is one folder level below the
    root. The former
    link is called a root relative link since it describes the
    path to the
    linked file from the root of the site no matter where the
    linking page is.
    The latter is called a document relative link because it
    describes the path
    to the linked file from the location of the current page.
    Neither will be
    flagged by the link checker, since both could be right.
    > Also the opposite - if I have this
    "../../products/index.html - and it
    > should be : "../products/index.html - it doesnt know its
    wrong.
    Is this a real or a made up example? If you have the former,
    and it should
    be the latter, then your site is not properly defined.
    > Help - I really wanted to implement my new site tomorrow
    - but I cant
    > trust
    > the results I am seeing right now.
    It's a cockpit error, I believe. To read more about
    root/document relative
    links, go here -
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_13129&sliceId=2
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15546&sliceId=2
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "sdunham" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    Hi. I am running the link checker, but its not
    finding all my
    > errors -
    > does anyone know why? -- for example - links like
    "/products/index.html
    > should
    > be "../products/index.html -- but link checker is not
    flagging this as
    > wrong.
    >
    > Also the opposite - if I have this
    "../../products/index.html - and it
    > should be : "../products/index.html - it doesnt know its
    wrong.
    >
    > Help - I really wanted to implement my new site tomorrow
    - but I cant
    > trust
    > the results I am seeing right now.
    >
    > Shriley
    >

  • Mail subject search is not finding All copies why?

    mail 6.3 using a subject search (in the small spotlght)  - is not finding All copies in my folders and subfolders why? I have done indexing for all mail folders and that did not correct it.

    Are you really still running OS X version 10.7.4 as your post indicates above?  I don't believe Mail 6.3 would run correctly on Lion.
    If not, and you're really running Mountain Lion, then I suggest Mailbox > Rebuild on the box(es) / folder(s) not working correctly.

  • Using iPad air, iPod, iCLoud and WinPro 7 - I am not finding all my tunes and movies among all these devices.

    When I orignally installed iTunes current update, and tried to move about the devices iTunes would crash. I uninstalled it, then reinstalled it. It seems to be stable, however as  before I am not finding all of my TUnes and Movies on all my devices.
    Any one?
    Thanks-

    Hey thomnj,
    From what I understand, it sounds like after uninstalling and reinstalling your iTunes as a troubleshooting step, you're now missing some of your media? I would troubleshoot the issue with the steps in here:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Welcome to Apple Support Communities!
    Best,
    Delgadoh

  • Hi there, I have much files saved on pages ( ios ipad) , I just open it today and did not find .all the files !!!! Just 4!!! Taken in consider that I did not delete or making any wrong action. How I can return the lost files!!!! Help please

    Hi there, I have much files saved on pages ( ios ipad) , I just open it today and did not find .all the files !!!! Just 4!!! Taken in consider that I did not delete or making any wrong action. How I can return the lost files!!!! Help please
    its very important files!

    tis true
    I know, I always do that but I was in a rush to get somewhere and I was relying on my thousand dollar Mac to do some kind of recovery or something. I know Microsoft always keeps temporary files (I think Mac does too, part of me asking here in this forum was for someone to tell me where I can find those files) and when you go to open Office Works then it gives you the option of opening the last recent documents, saved or not saved.
    I usually copy paste into my emial just in case something goes wrong with the created document but I just didn't have the time to login and do all that My loss, you live and you learn, BUT still if ANYONE got any info on this, PLEASE DO CHIME IN *keeping the hope alive*

  • I have saved a large number of cd on an extermal drive via my laptop. I have now moved my external drive to my desk to but I tunes does not find all the CD i have saved on the external drive

    I have saved a large number of cd on an external drive via my laptop. I have now moved my external drive to my desk to but I tunes does not find all the CD i have saved on the external drive

    Depending on which email client software you use
    the files should be in 'your home folder' library, esp.
    if you use Mail application.... ~/Library/Mail
    Since you don't specify what mail application,
    that would most be associated with the file.
    I notice there are some items to the right of your post
    where it says "more like this' so that may be worth a
    look to see if similar issues were answered. Also, the
    Help viewer in your system is a searchable database.
    Seems that google also brings up fair information, too.
    Do you have a complete bootable clone of your entire
    Mac system on an externally enclosed hard disk drive?
    Good luck & happy computing!

Maybe you are looking for

  • Precisando de ajuda...

    preciso saber como copiar videos e musicas do youtube?

  • Eratic freezes in OS 10.8.2

    Ever since I installed Mountain Lion, my Mac Pro has been behaving oddly. It goes into freezes, crashes during restarts and loses the disk Time Machine is supposed to back up to. I seem to be noticing that this only occurs when several (heavy) applic

  • How to select a random cell in the DataGridView?

    Good day I am new to the DataGridView control. I was wondering if one can select a random cell in the DataGridView and if it is possible can someone help me with the code or a link to do it please. Thank you.

  • Getting next calendar event on home screen

    I have just bought an iPhone 5, never had one before. On my old htc and before that, on my Nokia n95, I could get the next calendar event on my home screen - how do I do this on my iPhone?

  • Panic Kernal - can't load

    Hi, I've just bought a re-furbed mac book pro (2GHz, 512Mb) and I can't start OS X 10.4.9, i get the same error message 'panic(cpu 0 caller 0x0039BC83): unable to find driver for this platform: "ACPI"' and then a series of code. Worked OK when I firs