Javaw is useless

My java version "1.4.0_01"
My system: Win2k
I wanna hide the console window when I running my Swing GUI-look programme,so I used "javaw.exe" instead of "java.exe",the program works well, but I still can't get rid of the darkness command prompt window on my desktop.
please give me some hint,thanX!

Or you can click on bat file. Or on exe launcher. Or chose it from java ap launcher...
Then again I wasn't able to install my chinese version of windoze 2000 on my comp. If it will not be any help sue Mickerosoft.

Similar Messages

  • Detecting launcher (java.exe vs javaw.exe)?

    I found myself wondering this morning if one could and how if one could one would detect if the launcher of a particular main(...) were java.exe or javaw.exe programatically. Or by extension could one detect if Swing interfaces were supported.
    Consider that one had an application that could be launched from a command line or could be launched as a Swing windowed application. If there was a problem during startup the launcher (or if Swing was supported at the moment) might just be a relevant question when trying to give meaning full information back to the user. Trying to display information in (for example) a JOptionPane would be useless if the current environment didn't support it, and likewise if the launcher was javaw.exe sending the output to System.out or System.err would never be visible to the user.
    Spitting out the System.properties yielded some interesting and useful information, but nothing that just screamed at me, "Use me to determine where to send the output."
    Thoughts comments or suggestions?
    Thanks in advance,
    PS.

    I thought headless was supposed to handle this?
    http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
    When your app was run in javaw or java on Windows,
    either way your app IS allowed to open a graphical window.
    So you cannot tell which way it is.
    But if your app is run from the server, or via some nongraphical connection
    to a UNIX machine, then supposedly headless would be true.
    And you can test for that.

  • 1.4.2-beta bad javaws install

    Hi,
    I installed the 1.4.2-beta (both runtime and SDK), but when I click on javaws.exe I get "Bad installation. No JRE found in configuration file". The 1.4.2-beta doesn't seem to install a javaws.cfg file anywhere. I tried putting an old javaws.cfg file in some of the javaws directories but no change(I, of course, changed the setting in the old cfg file to point to the location of the new install).
    Does anyone know how to get this thing working. java works and the plug-in works, but Web Start will not.
    Thank you,
    Kevin

    I've noticed the 1.4.2 beta doing some odd things when you attempt to install it over a pre-existing runtime (& web start); even when the runtime is uninstalled web start requires it's own separate uninstall - and often leaves its cache in %USERPROFILE%\.javaws and registry keys hanging about.. you'll need to clear these after the uninstall to be really sure of a clean slate.
    Back to 1.4.2 - as already mentioned has a new configuration and cache structure hidden under %USERPROFILE%\Application Data\Sun\... After an install whenever it finds an old .javaws cache it'll try to reuse that cache structure rather than its own cache (not sure if this is a bug or feature). These userprofile caches can be easily reset by deleting the directories - web start will just recreate what it thinks is appropriate next time it runs. So delete the old %USERPROFILE%\.javaws and the %USERPROFILE%\Application Data\Sun directories directly after installing 1.4.2 and let web start recreate a fully functional %USERPROFILE%\Application Data\Sun.. structure.
    Having said all that the original message in the thread was about javaws.exe. I suspect you're trying to call the old 1.2 jws client in c:\program files\java web start - delete this directory it's now utterly useless (the 142 install should really do this). 1.4.2 has it's own copy of web start installed under the runtime c:\program files\java\jre<xxx>\javaws - I suspect you're shortcuts are out of date, because of this age old problem of jws not installing shortcuts for all users.. see some of my notes at http://lopica.sourceforge.net/services and http://sourceforge.net/mailarchive/forum.php?forum_id=13500
    - Richard
    - Richard

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

  • I have one of the old macbooks and wish to hook it up to my tv. do i need a mini dvi to hdmi adapter plus a 3 rca phono lead with a jack for the sound. please help as im useless at this stuff. cheers

    i have one of the old macbooks and wish to hook it up to my tv. do i need a mini dvi to hdmi adapter plus a 3 rca phono lead with a jack for the sound. please help as im useless at this stuff. cheers

    First we need to know which one of the 9 different models of MacBook you have. To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info (and then System Report if you’re running 10.7 Lion). When System Profiler comes up check the Model Identifier and post it back here.
    The Late 2008 model 5,1 Aluminum Unibody and the Late 2009 model 6,1 and Mid 2010 model 7,1 White Unibody have a Mini DisplayPort. The Early 2006 model 1,1 through Early 2008 model 4,1s plus the Early and Mid 2009 model 5,2s have Mini-DVI ports. Each would take a different adapter to connect with the TV.

  • Multiple (but separate) domain problem & Apple's slow and useless response

    I am having problem with multiple (but separate) domain. I opened a ticket.
    Here is Apple's slow and useless response and my follow up.
    This follow up is not going to resolve the issues I am having. The sites are not in one domain file. I have split them into separate domains. I found that the simplest change to any page made the publishing process extremely and reasonably slow. If I updated a single site, iWeb republishes the whole conglomeration; hardly the most efficient way.
    I have several directories under the ~/Library/Application Support/iWeb/ directory with separate Domain.sites2 files for each site:
    consultingAM.com
    DarkAssassinMovie.com
    Fuzzy Llama Junior Optimist Club
    GulfportOptimist.com
    OptimistView
    pAwesomeProductions.com
    www.nfdoi.com
    With the previous version of iWeb, I navigated to a specific ~/Library/Application Support/iWeb/ directory, selected the Domain.site file, and opened it. This would open iWeb with the selected domain. Several of the sites have their blog page with the RSS subscribe option.
    Once I made the update, all I usually had to do was publish site and all was well. Occasionally, I would have to do a publish all if I changed domains. All in all, I had no problems with publishing once I found the right steps to be able to maintain multiple domains.
    Now, using the default publish or publish all process, all I get is the last site I published. In order to get things semi-functional, I published a site, then I would go to iDisk/Web/Sites/ directory, select the folder name for the site I had just published, then copy it or move it to iDisk/Web/Sites/iWeb directory. This was rather slow and I suspect it is not an approved solution, but it semi-worked. My sites are back up, but they are not fully functional.
    Is there anyway to get back to using the ~/Library/Application Support/iWeb/ directory (separate Domain.sites file for each site) process to publish multiple sites? If not, is there any way to suck in the various domains back into one? If that is possible, will it take hours to publish the combined 2-3GB like it did with the previous version?
    How do I reverse the 'personal domain' process? I do not want to do this at this time. I just wanted to see what the steps were. I have done the first step, but not the second.
    I was glad to see some of the changes made in the upgrade (web widgets, maps, html snippets, theme switching), but I am too happy about the changes made by the upgrade process. In the past, I upgraded my Apple related stuff as soon as it came out. Based on this upgrade, that won't happen again.
    It took you guys 5 days to get back to me (during which time several of my sites were down) and I do not believe the information you provided is going to solve my specific problems. I am very disappointed with the results of this upgrade. Clearly there was inadequate testing of this product before it was released. I cannot recall seeing the Apple discussion forums with hundreds of topics and thousands of posts within a week or two of a new release. Apple had to upgrade iWeb in the first week, another poor sign.
    Apple is beginning to slip back to the pack; all vendors all below average. Apple is getting more like Microsoft everyday. First Apple delays the release of an OS upgrade so they can concentrate on a freaking phone, now you release software that is so buggy it should be classified as beta at best.
    Some of the changes/problem I am seeing since the upgrade (in addition to the problems mentioned previously) are:
    layout changes; some of my pages no longer look the same; same of the changes are so bad the pages are unreadable
    broken photo pages; some of my photo pages no longer work; some of them have no text or pictures
    file/page name changes; why would Apple change the location of the files; now my domains are not pointing right location; special characters (like spaces, ampersands, etc.) are handled differently in this version; specifically, I see that spaces are changed to underscores (_); iWeb used to use '%20' for spaces; what was Apple thinking?
    broken 3rd party themes; I know Apple is not responsible for 3rd party themes, but you should certainly be aware that they exist
    Based on what I am seeing online, most of the people who are complaining about major iWeb issues are not newbies; based on the technical details in the threads, there are clearly some experienced people who are trying to figure things outw. I have lost many hours trying to figure this mess out. I now have to review hundreds of pages to try get things to look and work the way they did before the upgrade. I have had to handle dozens of phone calls and emails from my viewers and subscribers trying to explain the situation.
    I googled 'iweb 08 *****' and got nearly 50,000 hits! I think Apple better get in front of this train before it gets run over.
    On Aug 19, 2007, at 11:09 AM, .Mac Support wrote:
    Dear David,
    I understand that you are experiencing an issue viewing some of your websites published in iWeb:
    I have examined all of the published pages and they appear to load and function as expected. If you published your website to .Mac, you can visit it either of these ways:
    - In iWeb, click the Visit button in the lower-left corner.
    - Enter the following URL into a web browser:
    http://web.mac.com/daviddawley/
    If you have published more than one website, the URL above will take you to the default website, which is the first website listed in iWeb. To visit another website you have created in iWeb, use the following URL format:
    http://web.mac.com/daviddawley/iWeb/YourSiteName
    Using this form, the web addresses for the two sites you mentioned would be:
    http://web.mac.com/daviddawley/iWeb/FuzzyLlamaJuniorOptimist.com
    http://web.mac.com/daviddawley/iWeb/pAwesomeProductions.com
    To change the default website, simply open iWeb, and in the Site Organizer, drag the desired default website to the top and republish to .Mac.
    NOTE: Be sure to give each website a unique name. This will help prevent one website from overwriting another. For further information, refer to the following article:
    iWeb: Do not use similar names for your sites
    http://www.info.apple.com/kbnum/n303042
    If you still experience issues with the website, try the following troubleshooting steps:
    WAIT SEVERAL MINUTES
    If your website has movies, you may need to wait several minutes after going to the website before the movies are ready to play. The QuickTime Player icon indicates that a movie is still loading.
    CLEAR YOUR BROWSER CACHE
    If you use Safari, you can clear your browser cache by choosing Empty Cache from the Safari menu. If you use another browser, consult that browser’s documentation if you need assistance in clearing your browser cache.
    UPDATE YOUR BROWSER
    Make sure you are using the latest available version of your web browser when viewing pages published in iWeb. If you use Safari, you can check for updates by choosing Software Update from the Apple menu. If there are any available Safari, Security, or Mac OS X updates, install those updates and try looking at your website again.
    If you use another browser, consult that browser’s documentation if you need assistance in updating the browser.
    TRY ANOTHER BROWSER
    If you use a Mac, try viewing your website with Safari or Firefox. If you use Windows, try Internet Explorer 6 or Firefox. Firefox is a free download available here: http://getfirefox.com
    TRY ANOTHER NETWORK
    If possible, try viewing your website from another network or Internet connection. If you can successfully view the website from another network, please consult your network administrator or Internet service provider (ISP) to resolve this issue.
    Important: Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance, or use of information or products found at third-party websites. Apple provides this only as a convenience to our users. Apple has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and Apple assumes no responsibility in this regard. Please understand that a third-party site is independent from Apple and that Apple has no control over the content on that website.
    Sincerely,
    Mel
    .Mac Support
    http://www.apple.com/support/dotmac
    http://www.mac.com/learningcenter
    Support Subject : iWeb
    Sub Issue : I can't publish to .Mac from iWeb
    Comments : I was interested in forwarding one of several iWeb based sites to one of my domains. I wanted to see what the steps were. I believe I inadvertently started the process for moving the site to www.nfdoi.com site. I have several sub directories under the ~/Library/Application Support/iWeb directory with separate domain.sites files (now domain.sites2).
    I was going through all of my domain.sites files and opening them in iWeb08; then publishing them. Somewhere along the line everything blew up. Most of my iWeb sites no longer function, It appears that every other iweb site other www.nfdoi.com is down EXCEPT the last one I published. I have made a mess of things and would appreciate any help.
    Don't work:
    http://web.mac.com/daviddawley/FuzzyLlamaJuniorOptimist.com
    http://web.mac.com/daviddawley/pAwesomeProductions.com
    Works:
    http://web.mac.com/daviddawley/Optimist_View/OptimistView.com/OptimistView.com.h tml
    ========= PLEASE USE THE SPACE ABOVE TO DESCRIBE THE ISSUE BASED ON THE QUESTIONS BELOW =========
    1. What version of iWeb are you using to publish to .Mac? iLife 08
    2. When did you first notice this issue? After publishing a few sites.
    3. What happens, including any error messages, when you try to publish your site?
    --------------------- Additional Info -------------------------
    Alternate email address : [email protected]
    OS Version : Mac OS X 10.4.10
    Browser Type : Safari 2.x
    Category : I can't publish to .Mac from iWeb
    Connection Type :Other
    TrackID: 4154168

    Just got off the phone with Apple Support.  There procedure was the following:
    1.  Go to the Apple TV, select settings, general and scroll down to reset.
    2.  Select reset and then select reset all
    Apple TV will go through a restart after the reset and you will have to select your network then log in with your network or Airport Express password.  You will then have to turn on home sharing and It will then ask you for your Apple ID for the iTunes store and then the password.  At this point you may not see your library, because the Apple TV wants you to turn on home sharing on your home computer that is hosting the movie library.  Turn off home sharing on that computer, restart iTunes and turn on home sharing again.  After this is done you should be able to see you library listed under the computer.
    After going through these steps, when I select an HD movie from my iTunes library the movie comes up after about a 5 second delay.
    Hope this helps!  I am back up for business.

  • Did you know that if your phone is stolen, Find my Phone is useless?

    Lessons from my lost iPhone. Despite having a pin to unlock the iPhone, you can simply power off the phone with a long press of the power button. Which means that if your phone is stolen and the thief is smart enough to turn it off (is there one who isn't?), 'Find my phone' is virtually useless!
    Also, you can use Siri on a locked phone to make phone calls and send messages. There are also enough tips available on the internet that show you how to use Siri to unlock the phone, making all your photos, emails and other information available to anyone keen enough to find it.
    I've written to Apple to tell them that a phone lock should really do what it says - LOCK the phone! If you own an iPhone and would like the same please write to Apple at http://www.apple.com/feedback/iphone.html
    Perhaps when enough people write they'll actually take some notice!

    This subject is discussed fairly frequently. Find my iPhone is not useful unless a particularly ignorant thief takes it. It's primary use is to find lost phones, not stolen. Requiring a passcode to turn it off eliminates one way a thief can disable Find my iPhone, but it isn't the only one, and probably isn't the one used by most professional thieves. Among other ways to disable Find my iPhone:
    Remove the SIM
    Wrap in aluminum foil
    Drop in a shoplifter's bag or backpack with its Faraday shield (copper mesh or foil lining)
    Restore the phone from DFU mode
    The Activation Lock feature, which prevents a stolen phone from ever being used again, except by the rightful owner, is the more valuable deterrent against theft. Once word gets around that a stolen iPhone is useless the market value of stolen phones will drop precipitously, and thieves will switch to stealing Android phones.

  • Can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • Useless code in java.awt.image.SampleModel.java?

    Hey there,
    i just looked up the sourcecode of java.awt.image.SampleModel.java in JDK 6
    I discovered two issues i'd like to discuss.
    1) on lines 736 to 739 this code is stated:
    if (iArray != null)
    pixels = iArray;
    else
    pixels = new int[numBands * w * h];
    I asked myself, why does this code exist? while the getPixels() method is overwritten twice by double[] getPixels() and float[] getPixels, it is impossible to reach the part of the java code that initializes the pixels-array. One could only step into that line if "null" is given for the i/d/fArray-parameter. but if one would do so, the Java parser couldn't determine, which method is to use. so this part of code is just useless IMHO.
    the java developers could get a little more performance out of this method if the if statement would be cut out - especially when reading a lot of very small rasters
    or, on the other hand, they could replace this piece of code by an explicit bounds check.
    When somebody touches this code, i would appreciate it if the errormessage "index out of bounds!" could be rewritten to be a little more verbose, like: Index out of bounds(x=123; y=456, maxX=100, maxY=400)!(numbers are just examples)
    I hope i didn't miss something very basic and could help improving this class a little bit.
    2) the local variable Offset(line 734) is coded against code conventions which say, variables shall start with a lowercase letter. Offset obviously doesn't fit that convention.
    best regards
    kdot

    One could only step into that line if "null" is given for the i/d/fArray-parameter. but if one would do so, the Java parser couldn't determine, which method is to use. so this part of code is just useless IMHO. You can have
    sampleModel.getPixels(x,y,w,h,(int[]) null, dataBuffer);No ambiguity on which method to use.
    the local variable Offset(line 734) is coded against code conventions which say, variables shall start with a lowercase letter. Offset obviously doesn't fit that convention. You're correct, offset is against coding conventions. So are many other examples scattered throughout the jdk source code. For example, Hashtable should be called HashTable. In some cases the coding conventions might not have been established when the original code was written. In other cases it might have been human error. In yet other cases the conventions were probably ignored. The person who wrote the SampleModel class did so some 10+ years ago (Java 1.2). Who knows what he/she was thinking at the time, and in all honesty - does it really matter in this case?
    Did you know there are some classes that declare unused local variables (ahem ColorConvertOp)? Some also have unused imports ( *** cough *** BufferedImage *** cough *** ). In essence, the jdk source code is not the epidemy of code correctness. But it's still pretty good.

  • Jmxri running under javaw but not from java web start

    Hi all
    I've got following problem.
    I've got application that uses special jar that requires jmxri.jar This jar is black box for me. It provides some interface to get data from server.
    When I run my application using jmxri.jar and mentioned black box (jar) from command line with javaw, it is working fine.
    javaw -Xmx256m -classpath application.jar;jmxri.jar;(blackbox.jar); CClient
    In case I use jnlp, everything is same, I've got following error meassage.
    cia4all:name=Cia4allFactory.... Exception ........................................
    javax.management.InstanceNotFoundException: cia4all:name=Cia4allFactory
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
         at de.siemens.cc.b2b.cia4all.client.Cia4allClientFactory.createLdap(Unknown Source)     
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)Cia4allClientFactory - is class in mentioned black box jar
    The jnlp looks like
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="file:/D:\" href="my.jnlp">
       <security>
          <all-permissions/>
       </security>
       <resources>
          <j2se version="1.4+" max-heap-size="256m"/>
          <jar href="application.jar" main="true" download="eager"/>
          <jar href="blackbox.jar" download="eager"/>
          <jar href="jmxri.jar" download="eager"/>
       </resources>
       <application-desc main-class="CClient">
       </application-desc>
    </jnlp>Any idea what must be configured in jnlp or missing ?
    Edited by: svist001 on Aug 28, 2008 12:56 AM

    The default remote apps webpage will be shown with these demos. In order to remove them for all-users, You need to change the default remote apps url, not in the user configuration file, but in a system config file.
    unfortunately, because of bug 4933851, you can not just put a deployment.properties file in the javaws directory (untill update release 1.4.2_05, where this is fixed). Instead you have to put it in what they call ${deployment.system.home} which on unix is /etc/.java/.deployment, but on windows is ${windows dir}\Application Data\Sun\Java\Deployment
    /Dietz

  • Javaws 64-bit fails to installer newer JRE  (Java7u6 auto-upgrading to u7)

    Hi,
    I have a machine with an previous version of java installed (tried with 1.7.0_06).
    My Jnlp file is set to automatically download the latest JRE. This works fine if the JRE installed is 32-bit. But if the user has downloaded the x64 bit version (on windows 7), everything works, except when I change the required version spec to 1.7.0_07.
    The confirmation dialog to install 1.7.0_07 comes up but fails, as it tries to download and run the 32-bit installer while the javaws is 64-bit. Shouldn't the 64-bit version download a 64-bit version when auto-downloading?
    The user is running javaws from the commandline
    javaws.exe http://myserver/myapp.jnlp
    h3. This is the jnlp file generated by javaws to auto download the JRE
    <jnlp codebase="http://javadl.sun.com/webapps/jawsautodl/AutoDL/j2se">
    <information>
    <title>J2RE 1.7.0_07 Installer</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="javaws-j2re-inst-w.jar" download="lazy" size="70700"/>
    <property name="installerLocation" value="jre-7u7-windows-i586-iftw.exe"/>
    <property name="installerSize" value="894952"/>
    <property name="javaVersion" value="1.7.0_07"/>
    <property name="platformVersion" value="1.7"/>
    <property name="msvcrt.versionMS" value="60000"/>
    <property name="msvcrt.versionLS" value="20910000"/>
    <property name="osplatform" value="windows-i586"/>
    </resources>
    <installer-desc main-class="com.sun.webstart.installers.Main"/>
    </jnlp>
    h3. Console output:
    Java Web Start 10.6.2.24
    Using JRE version 1.7.0_06-b24 Java HotSpot(TM) 64-Bit Server VM
    User home directory = C:\Users\myuser
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    0-5: set trace level to <n>
    Could not launch from cache. Will try online mode. [Some of required resources are not cached.]
    Match: beginTraversal
    Match: digest selected JREDesc: JREDesc[version 1.3+, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0:
    platform is: 1.7
    product is: 1.7.0_06
    location is: http://java.sun.com/products/autodl/j2se
    path is: C:\Program Files\Java\jre7\bin\javaw.exe
    args is: null
    native platform is: Windows, amd64 [ x86_64, 64bit ]
    JavaFX runtime is: JavaFX 2.2.0 found at C:\Program Files\Java\jre7\
    enabled is: true
    registered is: true
    system is: true
    Match: ignoring maxHeap: -1
    Match: ignoring InitHeap: -1
    Match: digesting vmargs: null
    Match: digested vmargs: [JVMParameters: isSecure: true, args: ]
    Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ]
    Match: digest LaunchDesc: null
    Match: digest properties: [-DinstallerLocation=jre-7u7-windows-i586-iftw.exe, -DinstallerSize=894952, -DjavaVersion=1.7.0_07, -DplatformVersion=1.7, -Dmsvcrt.versionMS=60000, -Dmsvcrt.versionLS=20910000, -Dosplatform=windows-i586]
    Match: JVM args: [JVMParameters: isSecure: false, args: -DinstallerLocation=jre-7u7-windows-i586-iftw.exe -DinstallerSize=894952 -DjavaVersion=1.7.0_07 -DplatformVersion=1.7 -Dmsvcrt.versionMS=60000 -Dmsvcrt.versionLS=20910000 -Dosplatform=windows-i586]
    Match: endTraversal ..
    Match: JVM args final: -DinstallerLocation=jre-7u7-windows-i586-iftw.exe -DinstallerSize=894952 -DjavaVersion=1.7.0_07 -DplatformVersion=1.7 -Dmsvcrt.versionMS=60000 -Dmsvcrt.versionLS=20910000 -Dosplatform=windows-i586
    Match: Running JREInfo Version match: 1.7.0.06 == 1.7.0.06
    Match: Running JVM args match the secure subset: have:<> satisfy want:<-DinstallerLocation=jre-7u7-windows-i586-iftw.exe -DinstallerSize=894952 -DjavaVersion=1.7.0_07 -DplatformVersion=1.7 -Dmsvcrt.versionMS=60000 -Dmsvcrt.versionLS=20910000 -Dosplatform=windows-i586>
    #### Java Web Start Error:
    #### java.lang.UnsatisfiedLinkError: C:\Users\myuser\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\ext\E1349249798698\j2re-installer.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
    h3. My JNLP file
    <?xml version="1.0" encoding="UTF-8" ?>
    <jnlp spec="6.0.10+" version="1.5-SNAPSHOT.431" href="hello.world.ApplicationStarter.jnlp" codebase="http://myserver/myapp">
    <information>
    <title>MyApp</title>
    <vendor>MyCorp</vendor>
    <homepage>http://myserver/myapp</homepage>
    <icon href="img/applicationIcon.png" />
    <icon href="img/applicationIcon.png" kind="splash" />
    <icon href="img/applicationIcon.png" kind="shortcut" />
    </information>
    <resources>
    <j2se version="1.7*&1.7.0_07+" href="http://java.sun.com/products/autodl/j2se" />
    <jar href="myapp.jar" main="true" version="1.5-SNAPSHOT.431"/>
    <property name="jnlp.versionEnabled" value="true"/>
    </resources>
    <application-desc main-class="hello.world.ApplicationStarter">
    <argument>http://myserver/myapp</argument>
    </application-desc>
    <security>
    <all-permissions />
    </security>
    <update check="always" />
    </jnlp>
    Edited by: 889232 on Oct 4, 2012 7:13 AM

    Hi outpaddling,
    Remember, you tried the "cacls" command and it did not work for you. I spent sometime on it and found that on Win7, there's command called "takeown" on Win7, which allows an administrator to recover access to a file/folder that was denied by re-assigning file ownership.
    Could you try the following?
    Note: You must elevate the level of permissions for Win 7 with UAC enabled.
    On Windows 7
    Choose Start > Programs > Accessories.
    Right-click on Command Line and select Run As Administrator.
    If Error 1321 is being caused due to some file e.g. if it's ACE.dll, then it's containing folder e.g. "C:\Program Files (x86)\Adobe\Reader 9.0" is to be mentioned in the below command line. The below command in blue can be typed at the command line and the end press Enter Key.
    C:\Windows\system32>takeown /f "C:\Program Files (x86)\Adobe\Reader 9.0" /r /d y && icacls "C:\Program Files (x86)\Adobe\Reader 9.0" /grant administrators:F SYSTEM:F /t
    After running the command, you should be seeing something like this,
    Successfully processed 1367 files; Failed processing 0 files
    And then try installing Reader 9.3.3 from http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.3.3/enu/AdbeRdr933_en_US.exe
    Hope, it helps.

  • How do I undo software update of v.6 on my iPad. The map ap is useless. I want google maps as I use it more than anything else. Apple map is terrible.

    Spent 10 mms trying to say t he new map app is useless. As its the main thing I use on iPad I want my google maps back. Ho can I get this?

    Spent 10 mms trying to say t he new map app is useless. As its the main thing I use on iPad I want my google maps back. Ho can I get this?

  • How do I watch a movie downloaded to my MacBook on my ATV?     The movie works fine on the computer but I just get a checkerboard pattern on the TV screen with audio but no video.  Apple support is useless and suggested that I reload the software...

    Just downloaded a HD movie to my computer (brand new MacBook Pro, all software up to date) and can't watch it on my Apple TV (brand new last year, all software upto date).  Using Airplay mirroring works fine in general but when I press play on the movie I lose the picture and get only a checkerboard pattern and sound.  Another MacBook we have gives a black screen with no sound.  Apple assistance is completely useless.  They suggested that I download the most recent software (all upto date), reload the movie (done and no help) or read the FAQs (no help, although this board suggests that there is a fundamental compatibility issue with mirroring of HD content...!)   That's what the ATV is for!   The new MacBook uses a different connector and I can't plug it directly into the monitor input on my TV with the connector I had from the old computer.   I ordered a new connector for fifty bucks and they stupidly sent it UPS with a signature required for delivery since it is such a high value item so now I have a hassle to receive it.  In any case plugging in a wire from across the room isn't a solution.  Is there any way to make all of this supposedly integrated hardware and software work or has Apple completely lost their way and turned into a Microsoft clone?   Hopefully some of their market mavens will read this and steer the ship back on course.  In the meantime any help you may provide would be much appreciated.

    The movie is from iTunes.   You would think that a download from iTunes to a MacBook could be watched on an HDTV using Apple TV without any headaches bit this does not appear to be the case. 

  • I can't open my imovie '9 projects on my new lap top which uses imovie 11'.. previous lap top was mac book osx 10.5.8.. new one is mac book pro 10.6.6.. any help out there! i'm pretty useless at this stuff, might be really simple???

    which uses imovie 11'.. previous lap top was mac book osx 10.5.8.. new one is mac book pro 10.6.6.. any help out there! i'm pretty useless at this stuff, might be really simple???

    Thanks for nothing, as usual, Apple.
    I had to redo the whole project from scratch on Windows Movie Maker.
    Now I know which brand to trust on my next purchase.

  • HT204406 Since updating to ios6 on my iPhone 4S iTunes Match has not worked. The app stays open for about five seconds before crashing. With ios5 it was great and worth paying for. Now it is utterly useless. Apple, please listen and fix this problem.

    Ever since I updated to ios 6 on my iPhone 4S, iTunes Match has not worked.
    I have been through the process of deleting my iTunes control files, and that worked temporarily, but now I cannot listen to music through the service.
    It shows my artists and albums, then takes forever to access the songs (often more than 10 minutes - and yes, that's using WiFi), more often than not crashing before it gets to that point, then repeatedly crashing when I try to open the Music App, so I can't even access things I've downloaded.
    Has anyone else found a solution?
    Apple, please listen up - I am paying you for the iTunes Match service that is utterly useless. Fix it please.

    After some troubleshooting, I decided to order a new battery.  I replaced the battery and was then able to get it to restore, however--after I restore it and it comes time to restart the phone, it gets stuck and doesn't turn on.
    Sorry, your repair ruined the iPhone.
    She does not have apple care and even though she loved this device, she isn't going to buy another iPhone because of all the problems shes had with this one (it's just over a year old).
    After you ruined the iPhone with DIY, Apple won't touch it anymore. You should have asked before all these had happened.
    I'm an android user myself and I love rooting/flashing new ROMS, so if jailbreaking her phone or doing some kind of super-restore with 3rd party programs might help, I'm all for it-
    Yeah, all Android user can think of is Jailbreaking, read this: http://support.apple.com/kb/HT3743

Maybe you are looking for

  • A great iTunes idea!!

    With all the Apple keynotes (MacWorld confrences and such) that exist, wouldn't it be nice if Apple offered them on the iTunes store to purchase? This would be great because, 1.) Every conference video is historical and would be great for people to l

  • How do I get site analytics with iWeb 09 MobileMe Rage iWeb SEO tool?

    I have two sites of consideration both registered and forwarded from GoDaddy: bicycedriver.com    several pages bicycledriver.org     just one page I was not getting site analytics data on referring sites and search engine/keyword data with code appl

  • HT3743 Unlocked 3G blocked in recovery mode

    I have unlocked my old 3G phone and have used a Tmobile sim card successfully for over a year, but now the phone won't work and is blocked in recovery mode after I responded to an Apple update messages.  Suggestions?

  • BB Z10 Blank Screen...

     Few days ago,i did realise that i be able to upgrade my OS to 10.2.0.415 ...as usual as i did for previous update,after all process have been finished,it will require me to re-start the phone so that the updates will be apply...but,once i click rest

  • Audio distortion in dv6-2018ax

    My p/n is VX322PA#ABG