Getting Jar Files

Hi,
This is a very basic question. I would like to have J2SE 1.3.1 jar file so that I can include it into my classpath to use some classes such as java.util.Date version of this jar file. I would like to include in class path rather than installing J2SE 1.3.1 JVM on my computer.
How can I do this?
Thanks for your help in advance.
Rohit

You basically can't. There are native code programs that are needed too - that is what the JVM really is. It is a translation from Java code to native code. The jar file is only part of the JVM.

Similar Messages

  • Can't get JAR file to work

    I am currently having problems getting the JAR file for my program to work properly. Here is what I'm doing in creating it and trying to run it:
    1.I create the JAR file with the command "jar cf myjar.jar *.class"
    2.I create a manifest file to point to the main class which contains only the line "Main-Class: MainClass". This is WITHOUT the .class extension
    3.I update the manifest for the jar archive with the command:"jar umf textfile myjar.jar"
    4.I try to run the app with the command "java -jar myjar.jar" but this only gives me an error that says "Failed to load Main-Class manifest attribute from
    myjar.jar"
    Am I doing something wrong here? I've tried to make my steps as close as possible to those that I read in the tutorials, but it's still not coming out for some reason. My computer does recognize the file as a JAR though since it made an icon of a JAR file for it. Please note I made up names for both my jarfile and main class file for privacy reasons, but I do not think the specific names would make much of a difference in this as they contain no special characters or anything in the file names.

    Hmm....I tried both of your tips javagalaxy and tsith by making the file look as javagalaxy posted as well as renaming it to "manifest.mf" and putting it in a "META-INF" folder that is in the same directory as all my .class files. I also made sure I hit Enter twice so that there was a blank line between the Main-Class line of the file. When i run the command it displayed "added manifest" as well as all the class names that I needed to be in the jar file including the main one that I'm trying to invoke. Despite all of that I'm still getting the same error that it can't load the main-class attribute from the jar file when using the command "java -jar myjar.jar" =/. I'm not really sure what went wrong. I tried deleting the extra line so that the cursor was flashing right below the Main-Class line, but that didn't change anything when I re-ran the commands. Did I do something else wrong in the manifest file? Thanks for your help so far! This is some complicated stuff the first time one tries it.

  • How do I get *.jar files to work?

    I don't think that simply saving java files as jar files works by itself. Do I need some kind of converter program?

    Assuming you are using windows 2000, first go to Start > Settings > Control Panel > System > Advanced > Environment Variables. Then make sure the full path of the jar file is included in your CLASSPATH. This is where Java looks to see what packages might need to be included.
    If you are not using Win 2K, then do a search here for "setting classpath" and you will get a ton of info.
    Rebies

  • Cant get JAR file to execute

    I'm developing an application in using JDK 1.2.1 and Borland/Inprise's JBuilder Professional version 3.0 (the OS is MS windows 98).
    My program is an application , not an applet.
    My program runs OK from the jbuilder development environment, but now I want it standalone , as a .JAR file. Using jbuilders deployment wizard, I've created a .JAR file for my program ("untitled2.jar).
    It includes a manifest.
    I set up a test subdirectory c:\test and copied all the files from c:\program files\javasoft\jre\1.2\bin (which includes java.exe and javaw.exe). I then copied untitled2.jar to c:\test
    I've looked in books & searched on the web site and I've tried various permutations of the syntax. For example I tried :
    java -jar -cp c:\test untitled2.jar
    but get the error message:
    "Failed to load Main-Class manifest attribute from untitled2.jar"
    Have I just got the syntax wrong or am I missing something else?
    Also do I understand right that JRE.EXE has been replaced with JAVA.EXE (and JREW.EXE with JAVAW.EXE) ?
    thanks in advance for any help
    Mike

    Thanks for the replies. I tried what you said :
    I've replaced "untitled2.jar" with "loofabtest.jar" (actual name of the program)
    The program is 2 java source files (loofabtest.java and frame1.java) , the main file is contained in
    public class loofabtest within in loofabtest.java. The JAR file created is called loofabtest.jar
    As I said previously the program runs OK from within jbuilder. All files & class names are lower case.
    I used winzip (version 7.0) to open loofabtest.jar.
    When I open loofabtest.jar there is a file called Manifest.mf with a path:
    meta-inf\
    when I open that there is NO line
    Main-Class: my.main or similar
    So I edit the Manifest.mf file & added a line :
    Main-Class: loofabtest
    Query 1: is this syntax right or should the line read: Main-Class: loofabtest.class
    after editing the file , when I save it I get an overwrite option , if I say no , I end up with 2 manifest files (which I think wont work) If I yes to overwrite , the file loses the
    meta-inf\     
    path (i.e. there is no path)
    I tried editing the manifest in jbuilder , but with no luck (jbuilder autogenerates the manifest)
    I also tried extracting all the files in the JAR , editing the manifest , then rearchiving them. I get the error message
    java.io.IOException: invalid manifest format
    at java.util.jar.Manifest.read(Compiled Code)
    at java.util.jar.Manifest.<init>(Manifest.java:55)
    at sun.tools.jar.Main.run(Main.java:87)
    at sun.tools.jar.Main.main(Main.java:760)
    Query 2 : Is there an easy way to edit the manifest file to add the line needed and keep the meta-inf\ path?

  • Getting JAR file for Applet doesn't work

    Hi,
    We have the following problem: we have some clients who want to use our applet. There are some clients that have problems with receiving the .jar file:
    When the applet tries to start we get a ClassNotFoundException: 'prestaties.class' not found. (the client wants to acces the class file directly from the server)
    If we check the .jar file, it exists on the client, but the file is empty.
    What could be the problem?
    - PRoxy or firewall blocks the jar file
    - applet doesn't have enough rights to write.
    Does anyone a solution, some workarounds or suggestions for this problem.
    Thanks!
    Luk

    Hi,
    Thanks for answering my question!
    Here is the extra information you asked.
    At server side everything is OK (the jar file is present and has all the class files).
    Where working with Weblogic server 4.51
    The clients run JRE 1.3.0-C
    I can't give you the applet code (confidential) but here is the html code:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600" height="80" align="middle">
    <PARAM NAME="cache_archive" VALUE="prestaties.jar">
    <PARAM NAME="cache_option" VALUE="Plugin">
    <PARAM NAME="cache_version" VALUE="1.4.2.1">
    <PARAM NAME="code" VALUE="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet">
         <PARAM NAME="codebase" VALUE="/lib">
         <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
         <PARAM NAME="scriptable" VALUE="true">
         <PARAM NAME="windowId" VALUE="185498422412000">
         <PARAM NAME="cursusId" VALUE="23178">
         <PARAM NAME="opleiding" VALUE="boetseren">
         <PARAM NAME="organisator" VALUE="TESTOE Omschrijving">
         <PARAM NAME="locatie" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="instructeur" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="WebLogicSession" VALUE="1">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3" width="600" height="80" align="middle"code="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet"codebase="/lib"pluginspage="cvsesf/plugin.jsp"cache_option="Plugin" cache_version="1.4.2.1" cache_archive="prestaties.jar" windowId = "185498422412000"cursusId = "23178"opleiding="boetseren" organisator="TESTOE Omschrijving" locatie="TESTDOSSIER HELKPDESK / 0" instructeur="TESTDOSSIER HELKPDESK / 0"WebLogicSession="1">
    <NOEMBED>
    </COMMENT>           
              <html>
                   <head>
                        <title>Java plugin download</title>
                        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                        <link rel="stylesheet" href="../includes/vdabstyle.css">
                   </head>     
                   <body bgcolor="#FFFFFF">
                   <TABLE width="600" border="0" cellpadding="1" cellspacing="0">
                        <tr>
                             <td>               
                                  <h1 align="right"><b><font face="Verdana, Arial, Helvetica, sans-serif">Java plugin</font></b></h1>
                                  <P><B>Voor het invullen van prestaties en vergoedingen heeft u de JRE 1.3 Java Plugin nodig: deze staat op de CD-ROM die u normaal gezien van de VDAB gekregen heeft.<br><br>
                                  Ofwel kan u de plugin hier zelf downloaden (<U>opgelet:</U> bestand is 8 MB groot).<br><br>
                             U kan het VDAB callcenter contacteren om een CD-ROM aan te vragen of om problemen te melden. Het nummer vindt u onderaan het scherm.</B></p>
                             </td>
                        </TR>                    
                   </table>               
                   </body>
              </html>
         </NOEMBED>          
    </EMBED>
    </OBJECT>
    Hope this helps.
    Luk

  • Help needed: getting jar files to work.

    Right, to start off, i have been doing php and mysql for a long time and i thought it's time to start using java.
    So now im trying to create an application. I use eclipse. All works well if i run the program from eclipse. But i want to create and executable or a jar file first. I used JSmooth but with that i get an error "Could not find the main class".
    While exporting the project as a jar i specified the main class in manifest specification.
    So these are my classes:
    the Main.class
    public class Main{
         public static void main(String[] args)  {
              PageFrame page = new PageFrame();
              page.show();
    }and the PageFrame.class
    import java.net.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    class PageFrame extends JFrame implements ActionListener,MouseListener{
         String[] skillnames = {"attack","hitpoints","mining","strength","agility","smithing","defence","herblore","fishing","ranged","thieving","cooking",
                   "prayer","crafting","firemaking","magic","fletching","woodcutting","runecraft","slayer","farming","construction","hunter","summoning"};
         JTextField username = new JTextField("",12);
         JTextArea box = new JTextArea(10,12);
         JButton search = new JButton("Search");
         int[] differences = {0,83,174,276,388,512,650,801,969,1154,1358,1584,1833,2107,2411,2746,3115,3523,3973,4470,5018,5624,6291,7028,7824,
                   8740,9730,10824,12031,13363,14833,16456,18247,20224,22406,24815,27473,30408,33648,37224,41171,45529,50339,55649,61512,67983,
                   75127,83014,91721,101333,111945,122660,136594,150872,166636,184040,203254,224466,247886,273742,302288,333804,368599,407015,
                   449428,496254,547953,605032,668051,737627,814445,899257,992895,1096278,1210421,1336443,1475581,1629200,1798808,1986068,2192818,
                   2421087,2673114,2951373,3258594,3597792,3972294,4385776,4842295,5346332,5902831,6517253,7195629,7944614,8771558,9684577,10692629,
                   11805606,13034431,14567891};
         URL page;
         static String name;
         JLabel[] skills  = new JLabel[24];
         JLabel skillicons  = new JLabel();
         public PageFrame(){
              super("Stats Lookup");
              setSize(800,600);
              setResizable(false);
              try{
                   UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
                   SwingUtilities.updateComponentTreeUI(this);
              }catch (Exception e){
                   System.err.println("Yo" + e);
              //teen labelid;
              for (int i = 0; i < skills.length;i++){
                   ImageIcon icon = new ImageIcon(PageFrame.class.getResource("images/skillimages/" + skillnames[i] + ".gif"));
                   skills[i] = new JLabel("00",icon,JLabel.CENTER);
              JPanel pane = new JPanel();
              GridBagLayout maingrid = new GridBagLayout();
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              GridBagConstraints constraints = new GridBagConstraints();
              JPanel skillPane = new JPanel();
              GridBagLayout levelslyo = new GridBagLayout();
              GridBagConstraints sConstraints = new GridBagConstraints();
              sConstraints.ipadx = 15;
              sConstraints.ipady = 10;
              skillPane.setLayout(levelslyo);
              int k = 0;
              int m = 1;
              buildconstraints(sConstraints,12,4,1,1,2,2);
              skillPane.add(skillicons);
              for (int i = 0; i < skills.length;i++){
                   buildconstraints(sConstraints,m,k,1,1,2,2);     
                        levelslyo.setConstraints(skills, sConstraints);
                        //skills[i].setText(" 0 ");
                        skillPane.add(skills[i]);
                        skills[i].addMouseListener(this);
                        m+=2;                    
                        if (m == 7){
                             m = 1;
                             k +=1;
              /*m = 0;
              k = 0;
              for (int i = 0; i < skills.length;i++){          
                   System.out.println("Paremale: " + m + " Alla: " + k);
                   buildconstraints(sConstraints,m,k,1,1,2,2);     
                   levelslyo.setConstraints(skillicons, sConstraints);
                   skillicons = new JLabel(icon);
                   skillPane.add(skillicons);
                        m+=2;                    
                        if (m == 6){
                             m = 0;
                             k +=1;
              buildconstraints(constraints,0,0,1,1,100,100);
              maingrid.setConstraints(username, constraints);
              buildconstraints(constraints,1,0,1,1,100,100);
              maingrid.setConstraints(search, constraints);
              buildconstraints(constraints,0,1,1,1,100,100);
              maingrid.setConstraints(skillPane, constraints);
              pane.setLayout(maingrid);
              constraints.fill = GridBagConstraints.BOTH;          
              search.addActionListener(this);
              box.setEditable(false);
              buildconstraints(constraints,1,1,2,1,120,100);
              maingrid.setConstraints(box, constraints);
              pane.add(username);
              pane.add(search);
              pane.add(box);
              pane.add(skillPane);
              setContentPane(pane);
              //getContentPane().add(scroll);
              pack();
              setVisible(true);
              WindowListener l = new WindowAdapter(){
                   public void windowClosing(WindowEvent evt){
                        System.exit(0);
              addWindowListener(l);
         void buildconstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, int wx,int wy){
              gbc.gridx = gx;
              gbc.gridy = gy;
              gbc.gridwidth = gw;
              gbc.gridheight = gh;
              gbc.weightx = wx;
              gbc.weighty = wy;
         /*Vector ranks = new Vector();
         Vector levels = new Vector();
         Vector exp = new Vector();*/
         class Stats{
              int[] levels = new int[34];
              int[] experience = new int[34];
              int[] ranks = new int[34];
         Stats stats = new Stats();
         public void getStats(URL url){          
              URLConnection conn = null;
              InputStreamReader in;
              BufferedReader data;
              String line;          
              StringBuffer buf = new StringBuffer();
              try{
                   conn = this.page.openConnection();
                   conn.connect();
                   //box.setText("Connection opened");
                   in = new InputStreamReader(conn.getInputStream());
                   data = new BufferedReader(in);
                   //box.setText("Reading data...");
                   int ts=0;
                   while ((line = data.readLine()) != null){
                        buf.append(line + "\n");
                        StringTokenizer tokenize;
                        tokenize = new StringTokenizer(line.toString(),",");
                        int[][] paarid = {{1,0},{2,3},{3,6},{4,1},{5,9},{6,12},{7,15},{8,11},{9,17},{10,16},{11,8},{12,14},{13,13},
                                  {14,5},{15,2},{16,7},{17,4},{17,10},{19,19},{20,20},{21,18},{22,22},{23,21},{24,23}};
                        if (ts < 25 && ts > 0){
                             int slot = paarid[ts-1][1];
                                  stats.ranks[slot] = Integer.parseInt(tokenize.nextToken());
                                  int yo = Integer.parseInt(tokenize.nextToken());
                                  stats.levels[slot] =yo;
                                  stats.experience[slot] = Integer.parseInt(tokenize.nextToken());                         
                        ts++;
                   for (int i = 0; i < skills.length;i++){
                        String text = ""+stats.levels[i];//testings[i];//
                        skills[i].setText(text);
              }catch(IOException e){
                   box.setText("Insert a username \nfirst!");
         public String getNextXp(int level, int currxp){
              String nextXp;
              if (level > 98){
                   nextXp = "N/A";
              }else{
                   nextXp = ""+(differences[level] - currxp);
              return nextXp;
         public void actionPerformed(ActionEvent evt){
                   String newuser = username.getText().toString();
                   name = newuser;
                   String address = "http://hiscore.runescape.com/index_lite.ws?player="+name;
                   try{
                        page = new URL(address);               
                        getStats(page);
                   }catch(MalformedURLException e){
                        box.setText("Insert a username");
                   repaint();
         public void mouseEntered(MouseEvent e) {
              //if (experience[].isEmpty()){          
                   Object s = e.getSource();
                   for (int i = 0; i < skills.length;i++){
                        if (s == skills[i]){
                             box.setText("Rank: " + stats.ranks[i] + "\nExperience: " + stats.experience[i] + "\nExp until next: " + getNextXp(stats.levels[i],stats.experience[i]));
         public void mouseExited(MouseEvent e) {
    box.setText("");
         public void mouseClicked(MouseEvent e) {
         public void mousePressed(MouseEvent e) {
         public void mouseReleased(MouseEvent e) {
    This is just a little project i thought i'd make for learning.
    But can anyone help me make a working jar or an exe file?
    The Jar i created does nothing, no error or anything.
    Thanks for Help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    How should i run the jar file then? I am double clicking it yes.
    EDIT: i ran the program through command line and i got an error:
    Exception in thread "main" java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(Unknown Source)
    at PageFrame.<init>(PageFrame.java:41)
    at Main.main(Main.java:4)OK - so it looks like you've found a command line!
    You read these stack traces from the top down. Often the most interesting line is the first line that refers to your code. In this case line 41 of PageFrame.java which, I guess is this:
    ImageIcon icon = new ImageIcon(PageFrame.class.getResource(
            "images/skillimages/" + skillnames[i] + ".gif"));The ImageIcon constructor is grumbling about being told to construct an icon from a null resource. getResource() will return null if it cannot find the resource that you specify.
    The first thing to do is check that the .gif image is where it should be. You have specified it as "images/skillimages/etc" so use the command line to view the contents of the .jar file (or maybe Eclipse will let you do this). Next to PageFrame.class there should be a folder "images" and within it a folder "skillimages" and within that the image file. If not then your jar export has been seen up wrongly and is not including the required resource files.
    (The "View" command is explained here: [http://java.sun.com/docs/books/tutorial/deployment/jar/view.html].)
    Next check the case of the file names. On Windows getResource() will not worry about the cAsE of filenames so the resources will be located fine when running the program unjarred (including within Eclipse). But it does worry about the case of jar entry names. Bottom line: keep the file names all lower case because you use them that way in the code.
    Finally, in case it is a particular image resource that's causing the problem you could add some code to print out its name just before you try and create the icon.
    for (int i = 0; i < skills.length;i++){
        System.out.println(
                "About to make icon from " + "images/skillimages/" + skillnames[i] + ".gif");
        ImageIcon icon = new ImageIcon(PageFrame.class.getResource(
                "images/skillimages/" + skillnames[i] + ".gif"));
        skills[i] = new JLabel("00",icon,JLabel.CENTER);
    }

  • Difficulty in getting jar files for jstl

    Dear dudes,
    I'm using tomcat 5.5 and i do want to work on jstl tags.
    So,i'm finding it difficult to get the jstl.jar, standard.jar files .
    I even went to jakarta site but somehow couldnot ping to the right url.
    So any help in this regard will be appreciated.
    Thanks!
    Note: My mail id is: [email protected] ( please send it to this id if you have those resources)_

    The download page for JSTL is here
    Its not that hard to find is it?

  • Getting jar file name with wrapper

    Hi,
    I'm using [java service wrapper|http://wrapper.tanukisoftware.org/] to launch my project,
    with the command
    File jarFile = new File(main.class.getProtectionDomain().getCodeSource()
              .getLocation().toString());witch opens the jar file name, this command returns the following
    file:C:/wrapper/../lib/project.jar
    this string raises the exception java.lang.IllegalArgumentException: URI is not hierarchical
    Is there any other why to get the application jar name ?, thanks

    Hi, the is the answer of my previous question
         public static String getJarNameURI () {
             String pathrojar = main.class.getProtectionDomain().getCodeSource()
                     .getLocation().toString();
             if (pathrojar.charAt(5) != '/')
                pathrojar = pathrojar.replace(":", ":/");
             return URI.create(pathrojar).normalize().toString();
    File jarFile = new File(getJarNameURI ());

  • When I try to search from the address bar I get: jar:file:///C:/Program%20Files/Mozilla%20Firefox/omni.jar!/chrome/en-US/locale/browser-region/region.propertieswhatthehell What can I do to solve this problem?

    I don't know when this started but I can't seem to remedy it. I've updated several times but have not uninstall/reinstalled FF. I'd like to do that only if I have to because I'd like to keep my saved info if possible. I'm not computer illiterate but I'm not a tech either so I need fairly basic instructions if it's at all possible.

    This issue can be caused by the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How do I prevent Spotlight from categorizing 'JAR' files as 'Application'

    I'm a java developer and consequently I have a lot of JAR files on the filesystem. The JAR file format is a standard archive format for java, and is used mostly to package library code - the java equivalent of a DLL. They can also be created as 'executable JAR's, but this is (very) infrequent compared to the library usage.
    Spotlight seems to think every JAR file is an application, and because I have a lot of java applications and development stuff installed, I can no longer reliably use Spotlight to find actual applications because the search results are overflowing with useless JAR file entries.
    Is there any way to configure spotlight to not classify JARS as applications? Or, alternately, can I make Spotlight ignore JARs completely? Either would save me a lot of time..
    /Bill

    There are several things in the current version of Spotlight that are either broken or just plain wrong. It looks like you have found another. When I look at the metadata for a jar file I see that its type is, well, a java jar file, and its content tree declares it to be a com.sun.java-archive. Finder gets this right: if you do GetInfo on such a jar file its kind is shown as "Java JAR file"--as it should be.
    When I made a saved search, using the Kind drop-down menu to get the pre-defined Application, and then looked to see what criteria Spotlight was using to define "application" (and yes, the search included jar files in its results), I discovered Spotlight was NOT using the simple, straightforward "kMDItemKind=Application" as one would expect. Instead it is using something I had never heard of to define an Application, to wit "_kMDItemGroupId = 8"--furthermore, I believe characterizing applications that way has been deprecated. Be that as it may, it doesn't work to find the things you want, and exclude the things you don't.
    There is no way for a user to fix this. The only thing you can do is not let Spotlight define the kind. Thus, if you bring up a search window do not use the Kind drop-down menu to select Application. Instead select Other from the menu and then type Application. You then get only things whose type declaration is Application, and you don't get jar files or widgets.
    The other option is to exclude jar files by typing
    NOT jar
    in the search for box (you'll still get widgets though). You can also add that boolean restriction if you are using the menu bar Spotlight search.
    Francine
    Francine
    Schwieder

  • Where is the jar file for secure Webservices??

    Hi all,
    Please, let me know where can I get jar file with SecurityProtocol and AuthenticationContext classes !
    references : http://help.sap.com/saphelp_nw04/helpdata/en/56/f26a4db4eca14780ab2c1a1e211372/frameset.htm
    web service standalone client
    thanks.

    Hi Isaac,
    <NWDS_ROOT>\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP-JEE\DCs\sap.com\webservices_lib\_comp\gen\default\public\default\lib\java\tc_sec_wssec_lib.jar
    Best regards, Maksim Rashchynki.

  • Need inputs for creating Jar file

    Hi All,
      I am doing the scenario as file to mail. so here i am using java mappings for sending the file in mail attachment.
    as i can see in my system there are already one imported archive exists with name called "java_mappings".
    in that i can find 10 to 12 mapings which are used for different interface.
    i have tried to export the imported archive to my local system and created the project with same in NWDS.
    but here i can not find jar file.
    can anyone suggest how can i get jar file for already exist the imported archive.
    second option is if i want to create new mappings then how can i get the Jar file.
    thanks,
    Bhaskar

    Hi Bhaskar,
    Jar file is an archive which consists of all class files needed by Java mapping. If you have a folder named Java_mapping and you guess that it is being used in different interfaces, then it should have the class files in it... may be the source code is missing...
    I will suggest you to export it into your local machine and extract using winzip.. then you might see some file with .class extesnion. Try a tool like frontendplus which will make java code from java class file to get there code..
    Now if you are trying to make one for your requirement i would suggest to read the stefan grube blog..
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414700%29ID1981012450DB01072979760660502867End?blog=/pub/wlg/4774
    Also note that the java mapping is just a jar file which has:
    1. the com.sap.xpi.ib.mapping.lib.jar (PI7.1) or aii_map_api.jar (PI7.0 or XI3.0) file
    2. You java code class file.
    Regards
    Suraj

  • Jar file required to read excel-2007 file

    Hi
    could any one tell me where we can get jar file to read Excel-2007. i tried but i didn't get it,please send me the
    URL to dowload jar files.
    Thanks and Regards
    Qaisar Jamal.

    You wanted a link? So here you are:
    http://apache.mirror.superhosting.cz/poi/release/bin/

  • Missing jar files

    Hi All,
    I am new to Netweaver. I have downloaded few sample applications from this site.
    If any one can help me in getting jar files for the below packages it would be of great help.
    com.sap.pct.srv.portaldataviewer_api.jar
    com.sap.pct.srv.portaldataviewer_core.jar
    com.sap.portal.compatibility50.jco_api.jar
    com.sap.portal.compatibility50.jco_core.jar
    com.sap.portal.runtime.application.jcoclient_api.jar
    com.sap.portal.runtime.application.jcoclient_core.jar
    jcoconnection_api.jar
    prtconnection.jar
    prtjndisupport.jar
    prtregistry.jar
    If you know atleast one of the path Please let me know.
    It would be grateful for you.
    And I find from SDN that we can logon to portal system administration->support->portal runtime->etc link.
    But I am unable to find out that portal runtime link in portal.
    Please let me know.  I have to finish this issue.
    Regards,
    Subashini.J

    Hi,
    you can find these files on your portal at location
    <b>prtjindisupport.jar & prtregistry[/b are at:
    system admin -->support -->portal run time -->browse deployment -->WEB-INF/lib
    <b>com.sap.portal.runtime.application.jcoclient_api.jar</b> file is at
    system admin -->support -->portal run time -->browse deployment -->/WEB-INF/portal/portalapps/com.sap.portal.runtime.application.jcoclient/lib
    <b>
    com.sap.portal.runtime.application.jcoclient_core.jar files</b>
    system admin -->support -->portal run time -->browse deployment -->WEB-INF/portal/portalapps/com.sap.portal.runtime.application.jcoclient/private/lib
    Regards,
    Ameya

  • Yet another problem getting a .jar file working on Mountain Lion

    The program I need to run is used for generating sounds. Its a simple java program, set up in a Windows .msi container: http://innertotality.com/?q=node/9
    I currently have the most up to date Java build from Oracle, according to their online test: v7 update 15. However, it shows up in Terminal after a java -version command as 1.6.0_41.
    Whatever version it is, I can't get this program running on it. I've pulled the .msi file apart to get the cab file, pulled that apart to get my jar file, in this case "headwave.jar". Clicking on it makes the JRE icon appear in the dock and do its dance, then it closes down. I can repeat that all I want and never get a running app out of it. I've opened the console up and watched for messages. This is all I've managed to get:
    2/23/13 9:58:44.218 PM login[2871]: USER_PROCESS: 2871 ttys000
    Nothing more, and I've only seen that once. I get more out of Console simply dragging a word around in this box to edit this post.
    If anyone could shed some light on what I need to do to get this running, I would greatly appreciate it. There are very few Mac OS X sound tools available to do what I need so this is really holding my project back. Most everything out there has to do with professional or amateur audio editing, not pure tone generation. I tried ToneGen and it just isn't doing what I need, and Perfect Tone and Tone Generator X haven't been updated for Intel Macs.

    No I haven't, but I just tried it. I tried to cd to the desktop (worked), found the Headwave folder with ls and then cd into it, found the jar folder I extracted earlier (disk1), cd into it, etc etc. I found HeadWave.jar and knew I had the right directory. java -jar HeadWave.jar gave me the following:
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Widgets/JSSampleListener
              at headwave.Main.<init>(Unknown Source)
              at headwave.Main$1.run(Unknown Source)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
              at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)
              at java.awt.EventQueue.access$400(EventQueue.java:82)
              at java.awt.EventQueue$2.run(EventQueue.java:669)
              at java.awt.EventQueue$2.run(EventQueue.java:667)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:87)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:678)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:29 6)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:20 1)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.lang.ClassNotFoundException: Widgets.JSSampleListener
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
              ... 16 more
    This is the same message I received earlier. I'm sure the info I need is hidden behind the "...16 more" lol

Maybe you are looking for

  • Wanting to use an older 23" HD acrylic

    Will the old 23" HD acrylic apple monitors work with new mac mini's using the adc to dvi adaptor? Are the adc to dvi adaptor a bad item... they have some mixed reviews?

  • ASM configuration on AIX

    Hi all, I'm trying to find a best practice, or set of recommendations on installation/using 11g ASM on AIX 5.3L and thought I'd seek some feedback as I've been unable to get such information via searching. The SysAdmin team has the following concerns

  • JVM Fails when using SQLJ/JDBC

    My program is often terminating with the following error. # An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM. # Program counter=0x604483d3 From the error I suspect it is either the SQLJ runtime or the JDBC drive

  • Camera raw included with elements 13

    Please,what version of camera raw is included with Photoshop elements 13

  • AW 6.2.9 freezes when trying to start

    the program starts but will not run.hard to force it to close. what can I do to get it to run again? iMac G5   Mac OS X (10.2.x)