Javafx for console (non-gui) applications?

Hi,
I am interested in using the JavaFX scripting language as a general purpose language to create console (non-gui) applications. But even running the following simple program seems to initiate some sort of GUI that quickly appears and disappears. Is there anyway to run a JavaFX script in "console-only" mode?
function run(args : String[]) {
  println("hello")
}Thanks.

Hi,
Yeah, that is pretty much exactly what I did.
I am running on Mac OS X 10.5.6, with Java 1.6.0_07 and JavaFX 1.1.0.
When I execute the program from Terminal, everything works, however a new application appears in the menu bar while the program is executing in the console. For example, if I add a java.lang.Thread.sleep(5000) invocation to the program mentioned earlier, you will see the application in the menu bar for 5 seconds. This is not the way a normal console-based java application typically works... there should be no application in the menu bar.
Thanks.

Similar Messages

  • How to run an iPhone non-GUI application in background

    Hi All,
    While looking into the web fouond that only one application can be run at a time in iPhone. So is there any way or work around to run a non-GUI app in iPhone in Background.
    This app will continuously query certain requests to iPhone regardign some internal iPhone events.
    Thanks in advance.
    Regards.
    Amit

    No.

  • What is the best option for a medium GUI application

    Hi all,
    I would like to develope an application(GUI) which can manage all cutomer related informations. So my question is which technology to use Swing, JBeans or something else ? Please advise me.
    Thank you very much
    James

    I've always found Swing easiest & best for buttons & tables etc, but AWT is betted at graphics like stick drawings.
    Shish

  • A possible fix for the non-installing applications on the iPod touch

    Here's what martinlondon posted in another thread...it worked for me! Turn ON the auto sync in your music tab, and the applications seem to load! You might lose your manually managed music on the iPod, but I didn't as it wouldn't sync up my music as there was too much in my library to FIT on my 8 GB iPod touch...
    Here's what he posted:
    A hint for anyone with this problem: I found a comment on a thread at theregister.co.uk suggesting that the problem was that you need to have automatic sync turned on to enable the new applications; manually managing your music doesn't work. I'm guessing a lot of people manually manage as their music collection is bigger than their Touch, including me...
    If you switch it on and sync, the new apps install like a charm. The downside is you lose all of your painstakingly manually copied music/movies on the iPod, so you have to switch back to manual syncing and copy them all across again. But this is a way to get it installed.
    I happened to be on the phone to the support team earlier today (Touch support is handled through the same team as desktop support apparently, and I had a Leopard upgrade issue) and they didn't know the cause or solution.
    Have to say that Apple's QA department don't seem to have covered themselves with glory here...

    manual syncing was never checked for me, so 'autosyncing' didn't fix the problem. I wish it did.

  • Which is the best and user freindly IDE for developing Java GUI application

    Please advice me if there is any good IDE for developing all kind of Java applications.
    I m confused about which IDE to use.
    I have Searched on Net also. and most of the answers i found was for JBuilder and JBoss.
    But cant confirm until u guys suggest me.
    Because i think this is the best place to ask questions about java.
    Please advice

    If you're developing JSPs and Servlets....
    I've found that using Eclipse (which is free) coupled with the MyEclipse plug-in (an advanced J2EE specific plug-in which costs $29.99USD/year) was the best for me. I've tried several free J2EE Eclipse plug-ins, didn't like them. Wasn't a big fan of NetBeans either, but I liked it tons better than the other Eclipse plug-ins.
    Therefore, IMHO for free I'd go with NetBeans, for a small fee I'd go with Eclipse/MyEclipse plug-in.
    If you are new to J2EE but not to Java, you may want to consider going straight to JSF and Sun's Java Studio Creator. This is not free, but the fee is one-time and development is (mostly) visual using Java Studio Creator.

  • Listen for keys in non-GUI app?

    Is there a way for a non-gui application that runs in a dos-box to receive key strokes? i read about the CTRL-C shutdown hook, but i don't want to shutdown my app but just send them some key combination so that it print something to System.out. Is this possible?

    You could try jcurses or a similar library...
    http://sourceforge.net/projects/javacurses/

  • Solaris 10 Firewall configuration with a GUI application

    Hello,
    I am quite a novice regarding Solaris.
    I have searched for hours on the web for a safe GUI application with which I can configure the
    firewall on Solaris 10 05/2009 in order to surf the Internet. Unfortunately I have not found one but
    lots of instructions instead on how to modify various config file setting, which I do not understand.
    My Solaris books are also of no help.
    Is there a precompiled GUI tool available similar to the one shipped with OpenSUSE's yast ?
    I think such a tool would make Solaris much more attractive for non-sysadmins - also because of
    its excellent hardware support that is superior to Linux.
    Thank you,
    Alexander

    IPF studied in little chunks is really easy to manipulate.
    Fortunately there is a doc that splits up IPF into little chunks with each new chunk building on all of the old chunks.
    http://www.obfuscation.org/ipf/ipf-howto.txt
    Then all you need to do is to create /etc/ipf/ipf.conf
    and
    svcadm enable ipfilter
    alan

  • Non graphical Applications

    Hi
    A lot of classes exist for helping creating Graphical Applications. But can anyone tell if there's classes for creating non Graphical Applications - that is 'good old' character based user interfaces meant to run through a telnet session.
    Regards
    Hans Peter

    I dont know general classes for that, sure you will spend more time trying to find it, that writing it. Maybe this could be an example:
    public class Class
    /** Here you variables */
    int op = 0;
    int op1= 0;
    public static void main (String args[])
    while( op!=N)
         menuPrincipal();
         op = Console.readInt( " Seleccion: " );
         System.out.println();
         switch( op )
         case 1:
         /** some method */          
         break;
         case 2:
         /** some method */
         break;
         case N:
         op1 = 0;
         while( op1 != M )
              menu2();
              op1 = Console.readInt( " Seleccion: " );
              System.out.println();     
              switch( op1 )
              case 1:
              /* some method */
    break;
              case 2:
              /* some method */          
         break;
         break;
              public static void menu1()
              System.out.print("\n");
              System.out.println(" Flechado de Villa Euler " );
              System.out.println("--------------------------");
              System.out.println();
              System.out.println(" 1. Cargar Grafo");
              System.out.println(" 2. Mostrar Grafo");
              System.out.println(" 3. Mostrar Alcances " );
              System.out.println(" 4. Imprimir Conjunto de Nodos y Lados " );
              System.out.println(" 5. Recorridos " );
              System.out.println(" 6. Salir " );
              System.out.println();
              public static void menu2()
              System.out.print("\n");
              System.out.println(" Recorridos >>> " );
              System.out.println();
              System.out.println(" 1. Circuito Euleriano");
              System.out.println(" 2. DFS ");
              System.out.println(" 3. BFS " );
              System.out.println(" 4. DFS con costos " );
              System.out.println(" 5. BFS con costos " );
              System.out.println(" 6. Dijkstra Secuencial " );
              System.out.println(" 7. Dijkstra HEAP " );
              System.out.println(" 8. A* (opcion a)" );
              System.out.println(" 9. A* (opcion b) ");
              System.out.println(" 10. Volver al menu principal");
         System.out.println();
    /** the implemention of your methods ... or whatever*/
    Regards, JTWN

  • More Lion issues - Throwing Console errors for non-existent application

    Again, with the bad side of Lion.
    I was receiving all kinds of console errors in Lion with TweetDeck and Adobe AIR apps so I de-installed these applications and removed them from the system. However, Apple's fantastic Lion Operating System still is complaining about them even though they are not to be found.
    In the console I am getting sandbox errors on locations and files that are non-existent. Below is a snapshot of the error messages, and the directory referred to:  /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast....  and the others DON'T EVEN EXIST!!
    How do I keep this from happening?  Why does the OS go after this when it's been removed?????
    8/20/11SaturdayAugust 5:30:14.113 PM    mdworker32    kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    8/20/11SaturdayAugust 5:31:11.000 PM    kernel    nstat_lookup_entry failed: 2
    8/20/11SaturdayAugust 5:31:44.239 PM    com.apple.SecurityServer    Session 100071 created
    8/20/11SaturdayAugust 5:31:44.254 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.F9107117265DB7542C1A806C8DB837742CE14C21.1/ PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.254 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.F9107117265DB7542C1A806C8DB837742CE14C21.1/ lck~PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.254 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.F9107117265DB7542C1A806C8DB837742CE14C21.1/ .fl89CB8354, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/com.seesmic.desktop.client.D89F32799270693BEF34AAA36E9B26 32B59240FA.1/PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/com.seesmic.desktop.client.D89F32799270693BEF34AAA36E9B26 32B59240FA.1/lck~PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/com.seesmic.desktop.client.D89F32799270693BEF34AAA36E9B26 32B59240FA.1/.fl89CB8354, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1/ PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1/ lck~PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1/ .fl89CB8354, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:32:01.234 PM    Preview    snapshot of document took: 0.00030899 secs, calling unblockUserInteraction
    8/20/11SaturdayAugust 5:32:01.318 PM    Preview    writing of document took: 0.083616 secs, success = YES
    8/20/11SaturdayAugust 5:32:42.333 PM    rpcsvchost    sandbox_init: com.apple.msrpc.netlogon.sb succeeded
    8/20/11SaturdayAugust 5:32:42.483 PM    sandboxd    ([66316]) smbd(66316) deny job-creation
    8/20/11SaturdayAugust 5:32:42.583 PM    rpcsvchost    sandbox_init: com.apple.msrpc.srvsvc.sb succeeded
    8/20/11SaturdayAugust 5:32:42.609 PM    smbd    anonymous connected to path /var/rpc/ncacn_np
    8/20/11SaturdayAugust 5:32:53.587 PM    sandboxd    ([66320]) rpcsvchost(66320) deny mach-lookup com.apple.distributed_notifications@1v3
    8/20/11SaturdayAugust 5:34:53.329 PM    smbd    anonymous connected to path /var/rpc/ncacn_np
    8/20/11SaturdayAugust 5:39:32.429 PM    mdworker32    kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

    Don't know how you de-installed but you didn't fully uninstall them. If you did not have an uninstaller supplied with the applications, then here's what you need to consider in order to fully uninstall:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash.  Applications may create preference files that are stored in the /Home/Library/Preferences/ folder.  Although they do nothing once you delete the associated application, they do take up some disk space.  If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application.  In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder.  You can also check there to see if the application has created a folder.  You can also delete the folder that's in the Applications Support folder.  Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item.  Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder.  Log In Items are set in the Accounts preferences.  Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab.  Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS.  Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term.  Unfortunately Spotlight will not look in certain folders by default.  You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead.  Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder.  Usually with the same name as the program or the developer.  The item generally has a ".pkg" extension.  Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are many utilities that can uninstall applications.  Here is a selection:
    AppZapper
    Automaton
    Hazel
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • Using JavaFX to rewrite GUI layer for Java Desktop Swing application

    From the faq's on javafx.com I read the following:
    I currently build applications in Java. Can I reuse my Java libraries in JavaFX Script?
    Yes. You can leverage the power of Java by using any Java library within a JavaFX application.
    This way you can preserve your investment in Java and use JavaFX to build engaging visual experiences.
    Can I use JavaFX to develop a user interface for my Java program?
    While it's easy to write your application in JavaFX and call into Java where necessary,
    the inverse - writing a Java application that calls into JavaFX for the user interface - is not yet true.
    We expect this to be addressed in the near future.
    * Perhaps I'm missing something, but I do not see the difference between the two questions, but they give completely different answers?
    * We have a swing application that we might want to use JavaFX to replace the current Swing user interface, however, we also have alot of business logic / communications code written in
    * Java that we aren't going to rewrite.
    Could someone tell me why the two questions have different answers?
    Thanks. Cheers.

    Hi Josh,
    I'm facing serious issue trying to invoke a javafx class from my java code. Could you please suggest a way to do it. Even hacks would be ood enough for now.
    I have created file Clock.fx. When run individually from my IDE (i'm using NetBeans) it works fine. But when i try to invoke it from a java class in project in throws exception.
    public static void main(String[] args) {
    ScriptEngineManager manager = new ScriptEngineManager();
    JavaFXScriptEngine fxEngine = (JavaFXScriptEngine) manager.getEngineByName("javafx");
    System.out.print("created fxEngine");
    try {
    Object o = fxEngine.eval ("Clock { property: \"Clock\" }");
    fxEngine.invokeMethod (o, "create");
    } catch (Exception ex) {
    ex.printStackTrace();
    I get following exception
    Exception thrown in JavaFX pretty printing: java.io.FileNotFoundException: \tmp\___FX_SCRIPT___.fxdump from StringInputBuffer (The system cannot find the path specified)
    Exception thrown in JavaFX pretty printing: java.io.FileNotFoundException: \tmp\___FX_SCRIPT___.fxdump from StringInputBuffer (The system cannot find the path specified)
    javax.script.ScriptException: compilation failed
    at com.sun.tools.javafx.script.JavaFXScriptEngineImpl.parse(JavaFXScriptEngineImpl.java:255)
    at com.sun.tools.javafx.script.JavaFXScriptEngineImpl.eval(JavaFXScriptEngineImpl.java:145)
    at com.sun.tools.javafx.script.JavaFXScriptEngineImpl.eval(JavaFXScriptEngineImpl.java:136)
    at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
    at newpackage.Main.main(Main.java:29)
    Could you please give a solution to it. I would be obliged.

  • SSO for SAP and Non-SAP applications without Enterprise Portal

    Dear all,
    Is it possible to implement SSO for both SAP and non-SAP applications without involvement of EP at all?
    I have gone through this link.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm</a>
    But I still i am not able to get the precise answer on how to enable SSO for both  SAP and non-SAP applications without EP.
    We have decided not to implement EP in first phase of SAP implementation. But we need to enable SSO for other SAP and Non-SAP applications.
    A detailed description on how to deal this kind of scenarios will be helpful.
    Thanks.

    A client of our's uses <b>SAP Enterprise Portal</b>, and is using the SAP SSO, which is implemented with tickets, and requires the use of SAPSECULIB.  My company provides an application for this client, and our application in hosted in our data center for the client, as a Software as a Service application, obviously across the internet.  Our client, which owns a SAP license, has asked that we support the SAP SSO as a non-SAP SSO application.  The client user's SSO ticket will be created from SAP EP, and then passed across the internet to our application, and we are to use that SSO ticket as an authentication ticket to our application.  I beleive I know how to do this work technically, having reviewed the SAP document named: "Dynamic Library for Verifying SSO Tickets in Third-Party Software"   Specification   Version 2.00  December 2005.
    My question is, does my company have the right to use the SAPSECULIB?  Where is the official download and <b>license</b> download, that indicates we can download this library, and use it to support a SAP customer?  We do not own a SAP license.  Thank you for your help.  I have searched many places in SAP support.<b></b>

  • SSO for  non sap applications in EP on which siteminder sso is integrated

    Hi ,
    we have implemented Siteminder SSO on   SAP PORTAL 6 SP16  for authentication.I would like integrate non sap application in Portal.I could not find any documentaion for setting up non sap application's in portal on which siteminder sso external authentication is implemented.
    can anybody help for getting  step by step document.
    Thanks
    Tag

    Hi ,
    we have implemented Siteminder SSO on SAP PORTAL 6 SP16 for authentication.I would like to integrate non sap application in Portal.I could not find any documentaion for setting up non sap application's in portal on which siteminder sso external authentication is implemented.
    can anybody help for getting step by step document.
    diff rewards to be given...
    Thanks
    Tag

  • SSO FOR NON SAP APPLICATIONS

    SSO for non sap applications in EP on which siteminder sso is integrated
    Posted: Aug 28, 2006 7:09 AM        Reply      E-mail this post 
    Hi ,
    we have implemented Siteminder on SAP PORTAL 6 SP16 for authentication.I would like to integrate non sap application in Portal.I could not find any documentaion for setting up non sap application's in portal on which siteminder external authentication is implemented.
    can anybody help for getting step by step document.
    diff rewards to be given

    Hi,
    if you have access to service.sap.com via S-User, you can download "SAP Enterprise Portal Security Guide" in the portal section. It has dedicated descriptions about SSO-Settings, also about netegrity.
    You can also search help.sap.com about "SSO" which gives you overview descriptions.
    On SAP Service Net, there is also an pdf "Integrating Security functions" in the Netweaver 2004s Portal section, where the description of the Java API for the PDK is included. This is very helpfull for coding.

  • Very very urgent Discoverer reports for non oracle applications

    Hi,
    My client is using discoverer 10g with R12.He is using different non oracle applications like BRM Application (database is oracle only) for that they wants to develop discoverer reports.It is possible to integrate with non oracle applications with discoverer.
    Can you please suggest me.It is very very urgent.
    Thanks & Regards.

    Hi
    You're really not supposed to manage a non-Apps mode EUL and an Apps mode data within the same URL. Having said that, I have a hunch you just might be able to do it and there are 2 ways. You can either make the data available to user who login using E-Business Suite credentials or you can make it available to users who have database credentials. The first one is straightforward and you do it just like any other data. Let me give you some hints regarding the second method.
    First of all I ahve not personally tried this and you may find that because Discoverer was initially set up in Apps mode that somewhere down the line it will make the suers connect this way. However, the following is worth a try.
    I would a new schema in the Oracle E-Business database to manage the link to BRM and create a database link from this user to a user in the BRM database. You will also need to create user accounts within the database for anyone who needs to login and run BRM reports.
    Next, I would create views in this new schema pointing at data across the BRM link, thus allowing Discoverer to think these are local objects.
    In Discoverer Administrator, you would need to log in to Discoverer using the owner of the EUL - NOT using SYSADMIN or any of the other E-Business Suite accounts. You should log in with the Oracle Applications checkbox unchecked. You can now create new business areas on the BRM data. You should also be able to assign users to Discoverer privileges and users to business areas.
    Using the same URL you would have Apps users connect using the E-Business Suite item on the drop-down for logging in and you would have BPM users choose the Business Intelligence Discoverer item.
    Let me know how you get on
    Michael

  • Need advice in writing forum component for a GUI application

    Hello,
    I need to write a forum component for a GUI application, that is a visual component that would have all the usual forum functionality - creating threads, posting replies, editing, logging in, etc. I'm planning to use some existing forum engine on a JBoss/Tomcat server. So I do not need a web-interface for a forum, but I need find some engine written in java with a clear interface that I could use in my app. I tried JForum (http://www.jforum.net) first, but it seems it doesn't have open API I could utilize.
    Could anyone please suggest appropriate engine, possibly anyone knows of open-source forum GUI apps I can look at?

    Google? You've never heard of Google? Seriously? Did you just get Internet access yesterday?
    http://www.google.com

Maybe you are looking for

  • Problem while archiving faulty files in File Sender Adapter

    Hi All, I am facing some problem while archiving the faulty files using Sender File adapter. I have configured the option in the File Sender Channel to archive the files to some other location. I have configured some custom modules inorder to perform

  • Nano (disconnected) is doing its own diagnostic check??

    I turned on my ipod and it had a screen with a series of check lists it was going through which including testing all buttons and right now it is stuck on "read verify scan". I dont know how to turn it off or go back. Help?!?! first gen nano Windows

  • Question about moving system board from domain C to domain B  SF2000

    Hello, i would like to move the system board e this is my configuration: Domain A with Domain B Solaris 10 Sun cluster 3.2 Domain C Solaris 10 no Sun Cluster. I move the sytem board SB7 from domain C to domain B with the command from System Controlle

  • Scheduled Crystal Report with Enterprise Portal

    Hi all, I want to Schedule that Crystal Report which is retrieving data from EXCEL. For that I have followed the following Steps. Login into CMCApp. Select the required rpt file and clicked the Schedule. It opens the Schedule Screen. In that I have s

  • Can iPod play WAV files

    I have the All Music Converter and have converted some of my iPod music files to WAV. However, I can't get iTunes to accept the files. Can iPod play WAV files? Does anyone know how to get them to transfer into iTunes? Thank you.