.java Files to Mac Applications

I am a novice Java programmer. My program is complete, but I need to know how to convert it to .dmg or .app or whatever the Mac will read as an application.

I cannot recall the answer, but if you get no answer from the MBP club, the Developer Forum is where I am really pretty sure someone had a resource for it.

Similar Messages

  • Is it possible to update only one java file in my application bundles without re-deployment?

    For Example,
    i have a Application.java file in my application-bundles.jar and it is running.
    I need to add a new method in Application.java file alone while the instance is running.
    I know we can change .jsp file through CRX-DE lite, but looking for .java files.
    is it possible or can some one suggest an idea on this?

    Hi kalimisetty,
    It is part of bundles. It needs recompilation & deployment. Though server restart is not required.
    Thanks,
    Sham

  • How to launch java files on Mac OS

    Hey! I got a question: how to wrap a java file into Mac OS executable file? Analog for Windows is exe4j . It creates a jre in a exe file , so a person dont need to install runtime env. So any way to do like that? I need to launch program on Mac OS without terminal & installed jre. Just double-click on icon. Thanx for response.

    jwenting wrote:
    won't work. The question is how to execute a Java source file as a Mac executable.I don't think that's what the OP wants. To quote him:
    I need to launch program on Mac OS without terminal & installed jre. Just double-click on icon.Sounds exactly as if he'd like to have an executable jar file. And since Mac OS X comes with a JRE preinstalled, there is no more magic necessary to make it easily usable.

  • How to create java files into windows applications i,e. exe files

    I been trying to convert my java files to exe files, but i have been reading a lot of webpages speaking of writing a code in c++ source code,
    any easier way to do it.

    Add your java compiler to the windows path.
    Hie thee to a run terminal! Enter
    javac filename.java
    then enter
    java filename
    And your program will work.I believe the OP is rather about creating a windows executable out of his application (jar).
    @OP If there is an easier way to do this, i must have missed it. Haven't searched thoroughly though. Gave it up as it looked complicated enough.

  • Use DataSource of weblogic in a standalone Java file

    Hi,
    We have a requirement to run a java file at a scheduled time in a day using cron scheduler on our linux server.
    We need to fetch data from the database & perform some business logic in this standalone JAVA file.
    Our application has an EAR which is deployed on Weblogic 10.3 server & in our application, we are utilizing the datasource created in that domain using Hibernate.
    Now, can we create a standealone Java file & use exisitng datasource (without Hibernate) instead of legacy JDBC code to connect to DB.
    Also, do we need to keep this JAVA file a part of this EAR, WAR or can we put the class file in anylocation outside this EAR & then utilize datasource feature.
    Please help on the same in implementation.
    Thanks,
    Uttam

    Hi Ravi,
    I did create Datasource domain & put wlclient.jar in my application classpath (Add jar in Java Build path of application), but, when I ran application, its giving below error
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/kernel/KernelStatus
         at weblogic.jndi.Environment.<clinit>(Environment.java:78)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:198)
         at TestDataSource.main(TestDataSource.java:37)
    Also, I'm putting code here as I there is no provision to attach the file here. Please let me know whats wrong here.
    Also, I've given the name of datasource as testDataSource through Admin console of the domain. Do we need to prefix the name with jdbc/ in the code or without that also it works?
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    public class TestDataSource {
         public static void main(String[] args)
              DataSource ds=null;
              Connection conn=null;
              Statement stmt=null;
              ResultSet rs=null;
              Context ctx=null;
              try
                   Hashtable ht = new Hashtable();
                   ht.put(Context.INITIAL_CONTEXT_FACTORY,
                   "weblogic.jndi.WLInitialContextFactory");
                   ht.put(Context.PROVIDER_URL,
                   "t3://172.19.244.180:7001");
                   System.out.println("HERE");
                   ctx=new InitialContext(ht);
                   ds=(DataSource)ctx.lookup("jdbc/testDataSource");
                   System.out.println("HERE AFER CONTEXT CREATION");
                   conn=ds.getConnection();
                   stmt=conn.createStatement();
                   rs=stmt.executeQuery("select distinct(circle) from AIRCEL_STORE_FINDER order by 1 ");
                   while (rs.next())
                        System.out.println("circle name "+rs.getString(1));
              }catch (Exception e) {
                   System.out.println("Error in Main "+e.toString());
                   e.printStackTrace();
              finally{
                   try{
                   if(rs!=null)
                        rs.close();
                   if(stmt!=null)
                        stmt.close();
                   if(conn!=null)
                        conn.close();
                   if(ds!=null)
                        ds=null;
                   if(ctx!=null)
                        ctx.close();
                   }catch (SQLException e) {
                        System.out.println("Error in SQLException Finally "+e.toString());
                   catch (NamingException e) {
                        System.out.println("Error in NamingException Finally "+e.toString());
    }

  • How to run standalone java file from weblogic server on Solaris

    Hi,
    We have a requirement to run a java file at a scheduled time in a day using cron scheduler on our linux server.
    We need to fetch data from the database & perform some business logic in this standalone JAVA file.
    Our application has an EAR which is deployed on Weblogic 10.3 server & in our application, we are utilizing the datasource created in that domain.
    Now, we have created a standealone Java file & used exisitng datasource (without Hibernate) of the domain with the help of below forums,
    Use DataSource of weblogic in a standalone Java file
    able to achieve the same.
    I've bundled this JAVA in application WAR & depoyed on the same domain where datasource is created.
    Now, how can I execute this file from anywhere on the server using weblogic classpath.
    Please help on the same in implementation.
    Thanks,
    Uttam

    If the Java application must be stand-alone you must not deploy it on WebLogic, then WebLogic will manage its lifecycle.
    In this case you can use the CommonJ API and use the timermanager if it must run on a certain time. More information
    of how to do this can be found here: http://middlewaremagic.com/weblogic/?p=5569
    If you keep the Java application stand-only and want to use a cron job you can follow the example presented here: http://middlewaremagic.com/weblogic/?p=7065
    Note that the example runs a WLST script, but you can follow the same steps to run your Java application.

  • Mouse unable to click/drag when in Mac applications

    I'm having trouble with my mouse - I am unable to drag any icons or files withing Mac applications (iPhoto, iTunes, Mail, Desktop), although my mouse seems to be working fine otherwise. For example, I can click and drag to crop a photo in iPhoto, but cannot drag a photo onto the desktop. I am unable while on the desktop to drag items into the trash, move icons, move email messages to other folders, add songs to playlists, rearrange dock icons, etc. I can click and drag dashboard items, however.
    Also, I don't know if this is related in any way, but around the time this started happening, my Time Machine Backups icon began having a little lock on it and when I attempt to open it, I am told that I "do not have sufficient access privileges". Could this be related?
    My husband and I have separate account logins, and the same issues are happening when he logs in as well.
    Any assistance would be greatly appreciated! Thank you.

    Links work in mms and sms messages fine but its any link in the email.
    Example
    I access the web on the N95, go to home page, when i click on the Hotmail link it takes me to the inbox and then when i click on the email it displays the text as normal text. urls are there but not clickable and no option to copy and paste. The same is when i access O2 email from the same browser
    I have taken some pics to show you what i mean. Normal urls are underlined in messages and are blue when they are clickable
    Now i know if its a short url i can maybe write it down but alot of the times i get emails with long urls so it can be a pain to write these down and as i said with no copy and paste functionality this is starting to annoy me.

  • Compiling java file in 11i

    I need to compile java file in CRM 11i .

    1003984 wrote:
    I need to compile java file in CRM 11i .Please see (HOW TO COMPILE JAVA FILES IN CRM APPLICATIONS [ID 468434.1]).
    Thanks,
    Hussein

  • Cannot open any Java files on my Mac OSX: Problem Solved

    Hello all,
    I have just begun an Introduction to Java class and I'm already having problems...namely, I cannot open .java files on my Mac.
    Whenever I try to open them, I get an error message that says: "You cannot use this version of the application Xcode with this version of Mac OS X."
    I'm running version 10.5.4 on a PowerPC Mac. It's a few years old, but I don't understand how it could already be so outdated as to not allow me to even use the application.
    I am 100% new to programming and don't really know at all what I'm doing. Apple says their JDK comes with every Mac and no one else seems to be having this problem. I don't really even know where to go to for updates, if that is what I need to do, or if I should just download a different JDK.
    This is an intensive (6-week) class and I don't want to fall behind, but it's halfway through the first week and I cannot even open files.
    Any suggestions greatly appreciated.
    EDIT: I figured out the problem by getting out my installation disks and I found the latest xCode tools app in the "optional packages" folder.
    Installed it and now I'm up and running.
    Edited by: chalks on Sep 17, 2008 10:09 AM

    You can download Adobe Reader from adobe.com.  The Mac OSX uses its "reader" to open PDF files without the Adobe Reader.  If you downloader adobe reader, it should open all PDF files.  Hope this helps.

  • Calling a created Java file from an AIR application

    I've got a guy helping me out who is creating a Java file that outputs an F1 keypress to the operating system/desktop (which Flex alone can't do.
    My problem is I need to know how I can call/activate this file from within an AIR application. I want my app to be ready for when he has created it for me but I've never used Flex to call an application so I would not know what classes need to be called or if any script would be required.
    In the following simple code lets say if the Java file itself was called keypress.java (or whatever file extension a java file has) what code would need to be added in, including imported classes, to make the click of the button activate this java file?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Button id="KeypressButton" label="Button" horizontalCenter="0" verticalCenter="0" click=""/>
    </mx:WindowedApplication>

    I think one solution is to use a Java proxy to call the Web services.
    In the Java proxy you can have a method that accepts the user/pass and sets them correctly for the Web service.
    Then you expose that Java proxy as a data control (right click, create data control) - and then create a page that invokes that method.
    (For the basics of working with a POJO data control see: http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html )

  • HT1338 I'm trying to download java on my Mac machine but the software update doesn't show me anything. Please advise what I should do to get the application.

    I'm trying to download java on my Mac machine but the software update doesn't show me anything. Please advise what I should do to get the application.

    If you can run it under chrome, you have java installed.
    There was some malware that exploited an older version of Java (not javascript) running in a Browser. Since few people use it Apple turned off Java by default in the Safari Browser.
    If you need it for something, just turn it back on in Safari preferences (inside Safari). After a few months of non-use, you may find it has turned itself off again.

  • Access jsp's application object from an .java file?

    Hi,
    I hava a .jsp page and an import statement to a .java file. How can I access the application object in this .java file?
    I want to make an initialization function that I want to be called in every .jsp of the WEB application and to store this function in a .java file.

    The only way to get a hold of the application object would be to pass it to java code as a parameter to a method.
    ie public class Util{
    public void initialiseJSPPage(ServletContext application){
      // do stuff in ServletContext
    }and then in the JSP call it via
    <% Util.initialiseJSPPage(application); %>
    You could manually include this code on every JSP.
    A better alternative is that in web.xml you can configure an automatic include (See JSP.3.3.5)
    What is it you are trying to accomplish by doing this?
    Would a Filter be a more appropriate tool in this case? That would let you run java code before selected requests are handled.
    Cheers,
    evnafets

  • How to compile and run java files on a mac using command line?

    can someone tell me or link me to some article on how to compile and run java files from command line on a mac? I have mac OS X leopard

    What do you mean by "where to put them" ? What do you want to put anywhere ?
    Have you read Peter's comment in brackets ? Perhaps you have a classpath problem ?
    Edited by: Michael_Knight on Aug 31, 2008 4:23 AM

  • Java application compiles java files in memory

    how can I use java application program (that may call method runtime exec or some other techniques) to compile the other java files that were already loaded in memory. (I can not copy those target files to the hard disk with extension java, then compile for security reason).

    And once they are compiled, where do you plan to put the compiled .class files? Same security problem, right? Perhaps you planned to load and use them "from memory" somehow? This would be a different security problem. Perhaps you need to rethink what you are doing.

  • I bought and transfer mac application (fxpansion Tremor) to ipod touch. Double tap dmg file in FileApp brings up unknown filetype dialog. What app processes dmg files to install them?

    I bought and transfer mac application (fxpansion Tremor) to ipod touch. Double tap dmg file in FileApp brings up unknown filetype dialog. What app processes dmg files to install them?
    an ipod touch supports all files types which its apps support

    thanks, it's good to get a reply, but why do you keep going on about windows? Agreed, there is no mention that Tremor runs on iOS. So far this is the only reason given that it cannot run on iOS. You can read and I can read.
    By putting the question to the community I was hoping for something like: the app you want is here-link, or the app you want cannot be written because technical-reason.
    From a words point of view it would seem to be open for any ios developer to support DMG files.

Maybe you are looking for