Mobile apps jar files

Hi,
I'm working in mobile apps customization So I need the corresponding jar( ora-apps.jar ) files. From where can I get these jar files.
Thanks
Govindan P
Edited by: user3026675 on Sep 8, 2009 6:04 AM

The MSCA files are NOT in jar files; they are classes stored under the $JAVA_TOP file structure. You need to copy the following folders with contents into a local directory in your dev. pc which is in your classpath:
$JAVA_TOP/oracle/apps/fnd
$JAVA_TOP/oracle/apps/mwa
$JAVA_TOP/oracle/apps/inv
$JAVA_TOP/oracle/apps/wms
Sukumaran.

Similar Messages

  • To generate .cab file for windows Mobile from .jar file

    Hi All
    I have a .jar file(running on windows Mobile With J9). Now I want to convert it into .cab file (again must be compatible with Windows Mobile with j9).
    There are some tools available which can convert .jar to .cab file but resulting .cab file is not suppported by Windows Mobile with J9.
    So can any one help me regarding this as soon as possible...
    Thanks with regards,
    nitesh

    hi Rucha,
    The CAB file is available as a part of the ZIP file i had mentioned in my previous posts...
    Unzip that file. Then browse thro the folder structure to the Folder i had mentioned. You'll find the CAB files there.
    Regards
    Ak.

  • Flex Mobile App Share File On Email

    Hello,
    How can I enable a user to share a file from inside a Flex app on Email so that it is placed there as an attachment already?
    Thank you.

    Help!

  • Loading classes from another jar file

    I've set up my jnpl file so that it references a core jar file (contains main() function). The jnlp also references another jar file (app.jar) which contains class files that I load and instantiate dynamically (using ClassLoader). The core.jar file contains a manifest that includes a reference to app.jar.
    The app works fine when I use "java -jar core.jar" from the command line.
    However, when I wrap the jars using jnlp, I always get a null pointer exception because it cannot find any class that is in the app.jar file. I've tried different strategies, such as trying to load a class file that sits on the server (in a jar file and not in a jar file), but that also fails if I use jnlp (However, it works if I use "java -jar core.jar")
    Any ideas what is going on?

    This is the "OckCore.jar" manifest before signing:
    Manifest-Version: 1.0
    Main-Class: com.Ock.OckCore.OckApp
    Class-Path: . OckMaths.jar
    Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
    Name: com.Ock.OckCore.OckApp.class
    Java-Bean: FalseThis is the manifest after signing:
    Manifest-Version: 1.0
    Main-Class: com.Ock.OckCore.OckApp
    Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
    Class-Path: http://hazel/Ock/. http://hazel/Ock/OckMaths.jar
    Name: com/Ock/OckCore/OckApp.class
    SHA1-Digest: KRZmOryizx9o2L61nN+DbUYCgwo=I have removed a load of irrelevant stuff from the "after" manifest to keep it readable.
    note that :-
    The OckApp.class loads normally from webstart and tries to load a class from OckMaths.jar.
    I can prove that OckApp.class does load because it creates a log file when it does.
    The OckApp.class tries to load a class from the OckMaths.jar. This fails if webstart is used but works if OckCore is launched using "java -jar OckCore.jar".
    The jars do exist at the location specified by the manifest.
    The application launches normally if I use "java -Jar OckCore.jar"
    Here is the jnlp file
    <?xml version='1.0' encoding='UTF-8'?>
    <jnlp
         spec="1.0"
         codebase="http://hazel/Ock"
         href="OckMaths.jnlp">
         <information>
              <title>Ock Maths Demo</title>
              <vendor>Rodentware Inc</vendor>
              <description>Demo of a ported app running as a Java Webstart application</description>
              <description kind="short">An app running as a Java Webstart application"></description>
              <offline-allowed/>
         </information>
         <security>
              <all-permissions/>          
         </security>
         <resources>
              <j2se version="1.3"/>
              <jar href="OckCore.jar"/>
              <jar href="OckMaths.jar"/>
         </resources>
         <application-desc main-class="com.Ock.OckCore.OckApp">
    </jnlp> I have also signed the jars outside of a webdirectory. I get the following manifest file:
    Manifest-Version: 1.0
    Main-Class: com.Ock.OckCore.OckApp
    Created-By: 1.4.0-beta3 (Sun Microsystems Inc.)
    Class-Path: . OckMaths.jar
    Name: com/Ock/OckCore/OckApp.class
    SHA1-Digest: KRZmOryizx9o2L61nN+DbUYCgwo=
    note that :-
    The jars do exist at the location specified by the manifest.
    The application launches normally if I use "java -Jar OckCore.jar".
    The application doesn't launch from webstart.
    I've found that cache, but the jar files have been renamed.
    OckCore.jar is anOckCore.jar, etc... so I'm not sure if trying to write a cmdline will work anyway.

  • Can't run JavaFX app as a jar file from command line

    I'm trying to build a JavaFX app from scratch (that is, by including the jar file from the JavaFX SDK rather than by using the special JavaFX project type from NetBeans). It runs fine in NetBeans. However, when I try to launch it as a jar file from the command line (using "java -jar dist\TestApp") I get the following. Has anybody seen this before, and if so how can I fix it?:
    *** Fallback to Prism SW pipeline
    Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLink
    Error: Can't load library: C:\dev\TestApp\dist\bin\mat.dll
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
    289)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:68)
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherIm
    pl.java:145)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:
    27)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:97)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.UnsatisfiedLinkError: Can't load library: C:\dev\RedactionT
    oolPrototype\RedactionToolPrototype.Core\dist\bin\mat.dll
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoad
    er.java:155)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoad
    er.java:85)
    at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:
    30)
    at com.sun.glass.ui.Application$1.run(Application.java:28)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:26)
    at com.sun.glass.ui.win.WinApplication.<clinit>(WinApplication.java:33)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
    Factory.java:20)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
    Factory.java:17)
    at com.sun.glass.ui.Application.Run(Application.java:51)
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
    279)
    ... 5 more

    Unsatisfied link means that Java is trying to access a native library, but it cannot be found. As to why this error is being thrown, here is my guess:
    If you open up one of the sample jars with a zip viewer, you will see that the Manifest file has the following entries:
    >
    Manifest-Version: 1.0
    JavaFX-Version: 2.0
    implementation-vendor: Oracle
    implementation-title: BrickBreaker
    implementation-version: 1.0
    JavaFX-Application-Class: brickbreaker.Main
    Created-By: JavaFX Packager
    Main-Class: com/javafx/main/Main
    >
    In other words, a JavaFX project works a bit differently than a normal Java project. com/javafx/main/Main is used as the Main class and your "Main" class is called later.
    If you are trying to build this from a normal Java project, then com/javafx/main/Main will not be created and it will call your Main class right away. Thus, whatever setup is needed to run JavaFX will not occur.

  • App runs in Eclipse environment but not from jar file with no error message

    When I upgraded my jre to 5.0 my app does not run. After fixing the properties problem I had a few days ago it is now at least compiling and running within Eclpse
    However, when I export to a jar file it runs to a certain point and then just goes away with no error message!!! I've narrowed it down to the exact point where it dies but don't understand why it dies and especially gives me no errors whatsoever. It just goes away.
    It is creating an instance of a new class when it dies.
    Can someone please help me?

    Ok, well it doesn't. Anyway, I'm still having the same problems. I can run my jar file to a certain point and then the application just stops. I know this because I've put come message boxes in the application to let me know where in the app the system is.
    It always dies when it is instantiating the new class called HeidiFrame; done by:
    HeidiFrame heidiFrame = null;
    if I put code in between the above line and before the below line, this code will work fine
    heidiFrame = new HeidiFrame();
    but if I put code after the above line, nothing happens
    As I said this all worked fine until I upgraded to Java 1.5
    If you look at http://java.sun.com/javase/technologies/compatibility.jsp there are 23 compatibility issues with the new release. We're using xml stuff so that was my first problem and the code wouldn't even compiile. Once I added in libraries, the code compiled and ran beautifully.
    However, when creating my jar file so I can deploy this application , I've discovered that the jar file will only run to a certain point, as I've stated previously. So, that's my problem. Not that I can't run it from the command prompt, which I can't, but it's a gui application. I've tried changing things in the classpath file and the manifest to no avail. Nothing changes. The application starts but when it goes to instantiate the HeidiFrame class, which is the class that actually builds the gui it dies and goes bye bye.

  • Regenerate Jar files on apps and DB tier at same time?

    The process of regenerating product jar files takes about 30 minutes on each tier (apps tier has forms and web server while DB tier has Database, concurrent manager). Can i regenerate on bot tiers simultaneously via adadmin?
    Thanks

    from node 1
    Generate Applications Files
    1. Generate message files
    2. Generate form files
    3. Generate report files
    4. Generate graphics files
    5. Generate product JAR files
    6. Return to Main Menu
    Enter your choice [6] : 1
    AD utilities can support a maximum of 999 workers. Your
    current database configuration supports a maximum of 117 workers.
    Oracle recommends that you use between 16 and 32 workers.
    Enter the number of workers [16] :
    Your current character set is "WE8ISO8859P1".
    Do you want to generate Oracle Message files
    using this character set [Yes] ?
    Enter list of products ('all' for all products) [all] :
    The current set of installed languages is: US
    Please select languages for generating Oracle Message files.
    You may select all of the above languages, or just a subset.
    Enter list of languages ('all' for all of the above) [all] :
    You selected the following languages: US
    Is this the correct set of languages [Yes] ?
    Setting up environment...
    Generating message files...
    Creating FND_INSTALL_PROCESSES table...
    The table FND_INSTALL_PROCESSES created by AD Administration already exists.
    If you are sure you do not want to keep the information from the failed
    AD Administration session,you may drop FND_INSTALL_PROCESSES table and
    continue with AD Administration.
    If you choose not to drop FND_INSTALL_PROCESSES table, AD Administration
    cannot continue successfully.
    Drop FND_INSTALL_PROCESSES table [No] ?
    from node 2:
    Generate Applications Files
    1. Generate message files
    2. Generate form files
    3. Generate report files
    4. Generate graphics files
    5. Generate product JAR files
    6. Return to Main Menu
    Enter your choice [6] : 1
    AD utilities can support a maximum of 999 workers. Your
    current database configuration supports a maximum of 117 workers.
    Oracle recommends that you use between 16 and 32 workers.
    Enter the number of workers [16] :
    Your current character set is "WE8ISO8859P1".
    Do you want to generate Oracle Message files
    using this character set [Yes] ?
    Enter list of products ('all' for all products) [all] :
    The current set of installed languages is: US
    Please select languages for generating Oracle Message files.
    You may select all of the above languages, or just a subset.
    Enter list of languages ('all' for all of the above) [all] :
    You selected the following languages: US
    Is this the correct set of languages [Yes] ?
    Setting up environment...
    Generating message files...
    Creating FND_INSTALL_PROCESSES table...
    The table FND_INSTALL_PROCESSES created by AD Administration already exists.
    If you are sure you do not want to keep the information from the failed
    AD Administration session,you may drop FND_INSTALL_PROCESSES table and
    continue with AD Administration.
    If you choose not to drop FND_INSTALL_PROCESSES table, AD Administration
    cannot continue successfully.
    Drop FND_INSTALL_PROCESSES table [No] ? yes
    Dropping FND_INSTALL_PROCESSES table...
    FND_INSTALL_PROCESSES table dropped.
    Dropping AD_DEFERRED_JOBS table...
    AD_DEFERRED_JOBS table dropped.
    Writing dependencies of jobs to run to appldep.txt file...
    There are now 59 jobs remaining (current phase=admin):
    0 running, 59 ready to run and 0 waiting.
    Reading completed jobs from restart file (if any).
    There are now 59 jobs remaining (current phase=admin):
    0 running, 59 ready to run and 0 waiting.
    Starting worker processes.
    Worker process 1 started.
    Worker process 2 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 3 started.
    Worker process 4 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 5 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 6 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 7 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 8 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 9 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 10 started.
    Worker process 11 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 12 started.
    Worker process 13 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 14 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 15 started.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Worker process 16 started.
    Checking if all jobs have their actual and symbolic arguments in sync....
    Done.
    Writing jobs to run to restart file.
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Reading jobs from FND_INSTALL_PROCESSES table ...
    ************* Start of AD Worker session *************
    AD Worker version: 11.5.0
    AD Worker started at: Sat Jan 08 2011 17:28:07
    APPL_TOP is set to /u15/tec2/appl
    Done reading jobs from FND_INSTALL_PROCESSES table ...
    Telling workers to read 'todo' restart file.
    Done.
    Starting phase 1000 (admin): Administration
    There are now 59 jobs remaining (current phase=admin):
    0 running, 59 ready to run and 0 waiting.

  • Can the adobe reader mobile app open standard password protected AES256 encrypted files (not Livecycle) made by Acrobat XI?

    I downloaded the adobe mobile reader for iOS just now and tried opening a pdf file created by Acrobat XI and optimized (no errors reported) for web and mobile devices the file was password encrypted  (*not livecycle*) using 256AES, compatibility acrobat X with restrictions allow: none, printing  allowed low rez.
    when acrobat mobile reader launched the pdf it required a password and even with the correct password used for changing security settings failed to open.
    how can people secure pdf's from unauthorized editing their work in Acrobat XI using (Acrobat X compatibility), standard password protection using AES256 bit encryption and open using the adobe mobile reader app ?

    I actually need at least three people to successfully open my free pdf using the Adobe Free acrobat viewer for mobile devices or my client want to remove the access for mobile devices link.
    Can anyone test please the free pdf that it opens on iOS or Android ?
    the guest checkout is enabled just need to put shipping info to access the Download File 2
    The wordpress link is below image
    mahalo in advance
    Source Supreme pdfSource Supreme

  • Deploying Java Desktop App using executable JAR files

    Hi there.
    Today I am very optimistic about java. I am a beginner, and I had tried (in my few free time) to understand how to deploy java desktop apps.
    I am using the lattest NetBeans IDE to do the programming and it is very very fast and optimized.
    Going to the point, I tried some time ago to deploy an application (made with this IDE) using JAR files, but even though the application run well on my IDE, when I packed it, it rised an error saying that
    java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
    I was using an absolute layout on my JFrame forms and this AbsoluteLayout is provided by netbeans and not by the normal SDK.
    I then looked for the absolute layout class and found a jar file in the following path:
    C:\netbeans\modules\ext\AbsoluteLayout.jar
    So I mounted the Jar file in my File Systems and then added the contents of the file to myApp.Jar file.
    I used the automated Jar Recipe Packaging feature of netbeans, that is why I needed to mount the AbsoluteLayout.jar file into my file systems.
    Now it runs fine by just right clicking the MyApp.jar file from Windows Explorer.
    In a next reply to this topic I will include some sample code so that anybody requiring to do such implementation can take this for help.
    Regards!
    JN

    Well,
    I will take some time here to show the basic source code and procedure to create a desktop application, pack it up in a Jar file for deployment, add other classes or jars to the deployment jar file and finally open the jar file as an executable. This applies for either windows and linux environments.
    Take in count i am using Netbeans IDE 3.x (3.5)
    First I open the IDE and create a new project called MyDesktopApp. This is done by going to the menu Project / Project Manager. Then click on the New button and specify the project name and click on OK.
    At this point, the Filesystems tab in the project explorer is empty. So I mount a directory to store myDesktopApp in it. I selected c:\MyDesktopApp but you can select any name you want.
    To mount the directory you follow these steps:
    1. Right-click on File Systems
    2. From the contextual menu select Mount > Local Directory
    3. In the filechooser window, you just browse it and SELECT the directory to mount. Be aware that you can even create the directory on this window. Do not enter (double-click) into the directory you want to mount, just select it and click on finish...
    4.Then the directory entry appears under the filesystems node of the project explorer.
    Now you have to create your application. You can either create a package (special configured and tracked directory) or you can create the clases directly inside the directory. For tidy project, I will create the package.
    To create the package follow these instructions:
    1. Right-click on the mounted directory and from the contextual menu select New > Java Package
    2. In the New Wizard - Java Package window, type the package name and click on finish. I use the "MyDesktopApp" as package name.
    OK. Now the package is created under the mounted directory. Now we have to create the Main Class. In this case I will use a JFRAME as the main class but you can create any class you want.
    To create the JFRAME as main class follow these steps:
    1. Right click on the java package you just created and select New>JFRAME from the contextual menu. If you do not see the JFRAME option on the NEW sub menu you will have to select the All Templates option. I explain the All Templates option now on, it will be easier to use the JFRAME if available. Once you use JFRAME with the all templates then the JFRAME will show up in further NEW usage.
    2. So finally we used the All Templates, and you select the Java GUI Forms > JFRAME form option and click on NEXT.
    3. Give it a name. (I used MyDesktopAppFrm) and click on finish. Be aware you can set advanced options by clicking on next. But for the purposes of this topic we will use default options so click on FINISH
    4. A new JFRAME form appears inside your package. Right click on the form and select Set layout > Absolute Layout.
    5. Add some controls and code. I added a label and a button. And coded the ActionPerformed event of the button to say hello! on the label. this is up to you. The code just looks as follows:
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // Add your handling code here:
    jLabel1.setText("Hello folks!");
    6. Compile and execute the form.
    Let's say this is our Desktop Application. Now We will pack it in a Jar in two steps...
    A. Create a JAR file (Recipe)
    1. Right-click on your package and select New > All Tempaltes (Long Route) You can also select New > JAR Recipe if available.
    2. On the New Wizard Window, choose the JAR ARchives > JAR Recipe template and click on NEXT
    3. I used MyDesktopApp as the file name and Defaults and then click on Next.
    4. Specify the JAR Contents. Select the Package (not the mounted folder) from the mounted file system and click on add and then click on NEXT twice...
    5. On the JAR Manifest window, click on GENERATE
    6. Edit the manifest in the window to add the following code:
    Main-Class: MyDesktopApp.MyDesktopAppFrm
    7. Ensure the Main-Class definition is the same as your java package and JFRAME name. Click on FINISH
    8. At this point we have a jar file in your project directory but this file wont run because it is missing some Netbeans clases that we will add in the next set of steps... Just to check, compile the file (right click on the JAR file and compile) and try to execute. It must compile but must not execute.(well if it executes you are done. It may execute if you did not set the lay out of the form as AbsoluteLayout)
    B. Add the AbsoluteLayOut to the JAR
    1. Right click on File Systems and select Mount > Archive Files
    2. Look for your netbeans installation folder and select the following file:
    .../netbeans/modules/ext/AbsoluteLayout.jar
    3. Click on finish
    4. Now the JAR File is mounted in the file systems.
    5. Right-click on your MyDesktopApp.JAR file and select properties.
    6. Look for the contents property click once on it and then on its elipsis button [...]
    7. From the FileSystems box in the Contents window, select the AbsoluteLayOut file and click on Add
    8. Then the system asks you if you are sure. Of course you are so click OK. (If not sure, just read the message text and click OK...:-))
    9. Click on OK
    10. Compile your JAR Recipe (right click on it and Compile)
    11. Now you must be able to run the file by right clicking it and EXECUTE.
    12. Also you must be able to run the file by double clicking the file from a Windows Explorer. You may receive a message asking to select the program to run the file with. You must browse and select the Javaw.exe file in the bin directory of your Java RUn Time installation. This is typically located at C:\j2sdk1.4.0_01\jre\bin or something like that. Use the File-Search feature of window to locate the JAVAW.exe file if needed.
    I hope this long explanation helps somebody to deploy Java Desktop applications. Please reply the message if it helps you just to know it was useful.
    Thanks for your time....
    JN

  • How does the app know image folder (non class files) wrapped in jar file?

    Hi,
    I created an jar file, client.jar, which wrap all necessary files, including packaged class files ( in a hierarachy structure), image folder, properties folder, and ext folder (containing other jar files used). When I run the jar file, like
    java -classpath c:\tmp\client.jar -jar client.jar
    the app does not know where the images go and could not get the properties files. Actually the image and properties files are contained in the same file: client.jar. How can I fix this. I don't want to extract the jar file back to several separated folders and then run it.
    Appreciate the help.

    Unfortunately you have to make some changes in your code.. to find the pictures you need to replace:
    ImageIcon pic = new ImageIcon("pic.gif");
    with
    URL url = MyClass.class.getResource("pic.gif");
    ImageIcon pic = new ImageIcon(url);
    where MyClass is the class which needs to load the resource.
    I hope this helped you! /Pingu

  • Export offline mobile app datagrid to file able to open in Excel

    I created an offline mobile app using Flash and I have a datagrid I would like to export/save as a file (csv maybe) that can later be opened by Excel.  I appreciate any help.

    My datagrid looks like this...
    Time
    Description
    Duration
    00:03
    Loud
    4
    00:28
    Smatter
    7
    00:50
    Medium
    10
    01:06
    Loud
    6
    02:07
    Loud
    8
    I used this code to create the datagrid...
    import fl.data.DataProvider;
    import fl.controls.DataGrid;
    import fl.controls.dataGridClasses.DataGridColumn;
    var historyArray:Array = [];
    historyArray = [];
    list_history.dataProvider = new DataProvider(historyArray);
    var list_history:fl.controls.DataGrid;
    list_history.addColumn("Time");
    list_history.addColumn("Description");
    list_history.addColumn("Duration");
    list_history.columns = ["Time", "Description", "Duration"];
    I tried modifying the code you shared with me, but I think I am confusing myself more. Do you see where I am making mistakes with the code below?
    var data:Array  = [];
       // data header
        data[0] = {a:'Time',b:'Description',c:'Duration'};
        // data body
         for (var i:int = 0;i<list_history.columns.length;i++)
    data[i] = {a:list_history.columns.dataField ('Time'),b:list_history.columns.dataField ('Description'),c: list_history.columns.dataField ('Duration')};
    //make a csv string
        var csv:String = '';
        for (var i:int = 0;i<list_history.columns.length;i++)
                   csv += data[i].a + ',' + data[i].b + ',' + data[i].c+'\n';
        //write to disk
         stage.doubleClickEnabled = true;
         stage.addEventListener(MouseEvent.DOUBLE_CLICK,writeCSV);
        function writeCSV(event:MouseEvent):void
             var file:FileReference = new FileReference();
             var bytes:ByteArray = new ByteArray();
             bytes.writeUTFBytes(csv);
             file.save(bytes,'test.csv');
    Thank you for your help on this.

  • How to run Java App in Jar file

    I can run Java App jar-ed into 1 jar file with java -jar App.jar
    But sometimes I need to jar only the app and bind the other classes from different place. So I tried to use:
    java -classpath c:\utils.jar -jar App2.jar
    where classes in App2.jar link to utils.jar. I just can't make it work. Any idea/help.
    thanks
    -ho

    hi HasanOen
    u need to edit the manifest file in yr JAR file u can do this by using the following cammand or by making the batch file but make sure all the files are in same folder.
    first of all u need to make a text file like below
    /////////// first file name: "THIS.txt" /////////
    Manifest-Version: 1.0
    Created-By: java // whatever here
    Main-Class: PUT YOUR MAIN CLASS NAME HERE (like MAIN)
    //////////////////// BATCH FILE "RUN.bat" //////////////
    jar cmf This.txt App2.jar MANIFEST.mf com
    com is the folder where your all the class file are.
    now double click the run.bat file. this will edit yr manifest file.
    hope this should work for u
    Note : Make sure yr jar file, txt file, bat file, and yr classes folder is in the same folder(I mean at same level)
    regards
    Satinderjit

  • Mobile jar file

    How do I make a mobile java game (jar file) work on my computer(windows xp)? I have no experiance with java. When I run it is says: Failed to load Main-Class artribute from...
    How do I get it to work?
    Here is a link to 2 mobile games I am trying to get to work:
    http://www.guestviewfm.co.uk/habbohotel2/thesims2.jar
    http://www.java2phone.ru/games3/crashnitrokart/crashnitrokart.jar

    The sims2 jar is not configured to be an executable jar. I didn't look at the other jar. You can get the main class to start usingjava -cp thesims2.jar root/SimsAppBut I got an error because the application needs javax micro edition, which I don't have, so there could be additional problems as well. If you can install the ME, you will need to include its jar(s) in the -cp argument.

  • Re: Can't load web app that has sealed jar files

              I forgot to mention that I'm using WebLogic Server 6.1 with
              J2EE 1.2 Plus Additional J2EE 1.3 Features.
              Barry
              "Barry" <[email protected]> wrote:
              >
              >I am getting the error "String index out of range: -1" thrown by
              >weblogic.servlet.internal.WebAppHelper.resolveManifestName when I start
              >WLS. The
              >problem seems to be
              >with certain jar files in the WEB-INF\lib directory of a particular web
              >app. It
              >seems that if the manifest in a
              >jar file has "Sealed: true", the error occurs. If I remove sealed jars
              >from the
              >lib directory, the problem goes
              >away. The jars in question are xalan.jar and crimson.jar.
              >
              >Any ideas?
              >
              >Thanks,
              >Barry
              >
              

    Yes, it's valid.
              Joe Carew wrote:
              > I can't find any reference to CR064391 on the support site. Does anyone know if this
              > is the valid CR number? I am having this same issue trying to deploy axis.
              >
              > Rajesh Mirchandani <[email protected]> wrote:
              > >contact [email protected] and refer to CR064391.
              > >
              > >Barry wrote:
              > >
              > >> I forgot to mention that I'm using WebLogic Server 6.1 with
              > >> J2EE 1.2 Plus Additional J2EE 1.3 Features.
              > >>
              > >> Barry
              > >>
              > >> "Barry" <[email protected]> wrote:
              > >> >
              > >> >I am getting the error "String index out of range: -1" thrown by
              > >> >weblogic.servlet.internal.WebAppHelper.resolveManifestName when I start
              > >> >WLS. The
              > >> >problem seems to be
              > >> >with certain jar files in the WEB-INF\lib directory of a particular web
              > >> >app. It
              > >> >seems that if the manifest in a
              > >> >jar file has "Sealed: true", the error occurs. If I remove sealed jars
              > >> >from the
              > >> >lib directory, the problem goes
              > >> >away. The jars in question are xalan.jar and crimson.jar.
              > >> >
              > >> >Any ideas?
              > >> >
              > >> >Thanks,
              > >> >Barry
              > >> >
              > >
              > >--
              > >Rajesh Mirchandani
              > >Developer Relations Engineer
              > >BEA Support
              > >
              > >
              Michael Young
              Developer Relations Engineer
              BEA Support
              

  • Can't load web app that has sealed jar files

              I am getting the error "String index out of range: -1" thrown by
              weblogic.servlet.internal.WebAppHelper.resolveManifestName when I start WLS. The
              problem seems to be
              with certain jar files in the WEB-INF\lib directory of a particular web app. It
              seems that if the manifest in a
              jar file has "Sealed: true", the error occurs. If I remove sealed jars from the
              lib directory, the problem goes
              away. The jars in question are xalan.jar and crimson.jar.
              Any ideas?
              Thanks,
              Barry
              

              I am getting the error "String index out of range: -1" thrown by
              weblogic.servlet.internal.WebAppHelper.resolveManifestName when I start WLS. The
              problem seems to be
              with certain jar files in the WEB-INF\lib directory of a particular web app. It
              seems that if the manifest in a
              jar file has "Sealed: true", the error occurs. If I remove sealed jars from the
              lib directory, the problem goes
              away. The jars in question are xalan.jar and crimson.jar.
              Any ideas?
              Thanks,
              Barry
              

Maybe you are looking for

  • IMPORT CONDITION TYPES AND ITS RATE?

    In the following condition types used in IMPORT which are all Cenvatable and as on date what is the TAX Rate? JCDB IN:Basic Custom Duty JCV1 IN : CVD JECV IN : Ed Cess on CVD J1CV IN : H&SECess on CVD JEDB IN : Ed Cess on BCD JSDB IN : H&SECess on BC

  • Why won't my iphoto events drag into google plus or shutterfly

    I have been trying to drag my photos from an event file in iphoto onto either Shutterfly or Google Plus, and I cannot do it.  I used to be able to do it with no problem, but it will not work any longer - for about a year, actually.  Any ideas of why

  • Copy of iPhoto for Macbook Air & iMac?

    I have iPhoto on my Macbook Air, but I purchased a used iMac which does not have iphoto. Do I have to purchase iPhoto from the Mac store for copy on my iMac? I want the abillity to organize photos on both computers. Can I copy iPhoto from the Mackboo

  • Extract software product information from SLD

    Hi Colleagues, I am wondering how to extract software products information from SLD. I need application and version of the product. For example Sap NetWeaver version 7.11. I read the business systems: CIMInstancenameList businessSystems = client.enum

  • Bank statement iteams r showing as error iteams in GLaccounting level.

    Hi viewers when i uploaded the Bank statement iteams through BDC it is uploading successfully. But in Update Account statement/check deposit Transaction - while we r viewing No.of postings, Errors, Totals........All iteams r showing as error iteams i