Windows under a Java programm

Hello,
how can I implement Windows of instructions with a Java program?
A program steer, without being even active. Separate only
over a Javaprogramm. How can I Windows Shut down??
Thanks

i will Windows from a Java application Shut down.You want your Java program to tell Windows to shut down?
(Damn Germans and their word order.)
You cannot do that in pure java. You have to write native code for it. So you need to a) read up on JNI to find out how to include native code in your java program, and b) go to a Windows-specific place and find out how to tell Windows to shut down, and c) sew it together. (Sorry, I can't help you with any more details.

Similar Messages

  • Can we run java programms on Windows XP?

    Hi experts..
    I installed JDK on Microsoft Windows XP Home Edition..but i am unable to run java programmes.
    can i run java programmes on Windows XP?? if so how??
    i will be very thankful..if any one solve this problem..

    Yes, you can. There's a bunch of things you need to do (mostly setting the path environment variable). You should look at the documentation that came with the JDK, and check out the many forum responses to problems in setting up the JDK on Win 2K and Win XP.
    HTH

  • HT1343 how do I switch between windows in the same programme?  I know that I can use Command tab, however this takes you through all of the programmes that I'm using. What I need to do is have a shortcut to switch between windows in the same programme.

    how do I switch between windows in the same programme?  I know that I can use Command tab, however this takes you through all of the programmes that I'm using. What I need to do is have a shortcut to switch between windows in the same programme.  For example if I'm in Excel and have 5 windows open I want to be able to scroll between each window of Excel only with a shortcut.
    Please help!

    Command and ~ keys to tab between open windows.
    Technically it is the Grave Accent ` (aka reverse quote) under the tilda ~ key.  Tilda ~ is shifted, and Grave Accent ` is not.
    Command-Grave Accent

  • Windows XP and java.lang.NoClassDefFoundError: Console

    Our company is currently using a web page to launch a java applet that redirect the user to an application server to demo our product. This has been and still is working fine for all Windows version until XP. And depending on which version of XP, sometimes it will work and sometime it won't. The link to the web site to launch the applet is http://www.aasys.com/gs_java/iejava.htm if you wish to test it.
    It should take you to a screen asking for a security code which we would provide to our customers. If you get this far it is working.
    Any suggestion would be helpful.
    Thanks.
    DP Grose
    Below is the error message we get on some of the Windows XP versions :
    Java(TM) Plug-in: Version 1.4.2
    Using JRE version 1.4.2 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Don
    Proxy Configuration: No proxy
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.NoClassDefFoundError: Console
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    Your first option we are currently looking at but have not tested it yet. We would prefer the end user not to have to do this, but they may have to in the end.
    Your second option seems the best route to go and we may be able to get the source code from our vendor. Once this is compiled under 1.4.2 will it still be compatable with the older version of MS JVM or will our users need to download the current Java plugin? Since this the way that Java is proceeding this will most likely work for everyone.
    Thanks.

  • I can not run or compile java programme

    I am first time java programmer I can not run or compile any java programme.
    (can not read
    1 error) this is the the message that I am getting from my dos

    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Try the tutorial.
    It sounds like your error message comes from compiling. For example, "javac mysourcecode.java" If that is correct, the most common trouble comes from using a program like Notepad on Windows to create the soruce code. The tutorial will walk your through it.

  • Do java programms after giving compilation error generates .class file?

    Do java programms after giving compilation error generates the .class file?
    Do any outer class may have the private as access modifier?
    If someone asks you that -do any program in java after giving a compilation error gives the .class file -do any class except(inner class)
    be defined as private or static or protected or abc or xxx Now type the
    following program
    private class test
    public static void main(String s[])
    System.out.println("Hello!How are You!!");
    -Compile it.... You must have
    received this error test.java:1:The type type can't be private. Package members are always accessible within the current package. private class
    test ^ 1 error
    Here please notify that compiler has given the
    error not the warning therfore .class file should not be created but now type
    >dir *.class
    ___________ and you will see that the
    test.class file existing in the directory nevertheless this .class file
    is executable. if you will type __________________ >java test
    it will
    wish you Hello! and suerly asks you that How are You!! ________________!
    You can test it with the following as acces modifiers and the progrm will run Ofcourse it will give you compilation error.
    protected
    xxx
    abc
    xyz
    private
    Do you have any justification?

    Hmm,
    I've been working with different versions of jdk since, if I'm not mistaken, jdk1.0.6 and never was able to get *.class with compilation errors. It was true for Windows*, Linux, and Solaris*.
    About the 'private'/'protected' modifier for the type (class) - it makes perfect sence not to allow it there: why would anyone want to create a type if no one can access it? There should be a reason for restricting your types - let's say, any inner class can be private/protected.
    For ex., you shouldn't have compile problems with this:
    class Test
    public static void main(String s[])
    System.out.println("Hello!How are You!!");
    private class ToTest{}
    Sorry, but I don't really know where you can read up on that.

  • Speed of java programme in different JVM

    There is a java programme.(It is a big programme.)
    In MS-JVM(microsoft java vm) ,it seems to be running faster then running in Sun-JVM.
    For example, it spends 6 seconds opening a frame in MS-JVM, and it spends 25 seconds opening the same frame in Sun- JVM.
    Now,is there any methods to speed the programme running in Sun-jre except optimize the source ?
    Sorry , my English is poor ,can u understand me?
    thanks a lot in advance!

    It really depends on the underlying hardware (CPU, memory, graphic card, ...).
    Are they comparable?
    -Alexis

  • Loading java programme at boot time

    hiiiii everybody,
    can anyone tell me how to load java programme automatically at the time of windows or linux startup i.e. when machine boot. please let me know at [email protected]
    thanks in advance.

    Search - windows startup
    Search - linux startup

  • Getting the Win Server entries through java programme

    Hi,
    Windows win server have the details(Cname,ipaddress) about the connected devices.
    can any body suggest the approach which gets the Cname and ipaddress from winserver using java programme
    Here CMR will write the newly connected devices cname and ipaddress into winserver
    I need java programme for getting the those details from the windows winserver
    Othere wise please suggest, is there any alternative approach for getting those details, This is very urgent, Please help me
    Thanks in advance
    Audippa Naidu.M

    Othere wise please suggest, is there any alternative approach for getting those details, JNI will likely be involved. I promise you there is no built-in Java functionality to get data from win server, whatever that is.
    This is very urgentNothing like waiting til the last minute, eh? Look, just because you say it's urgent doesn't mean anyone will help you any faster than anyone else. So don't be that guy.

  • I want to  implement the Window autoresize in java swing application

    Hai...
    i want implement the window autoresize functionality in my java application. Same time i want to minimize and maximize my won window. and my java application develop one more frame at time disply in single window so i want disply the thaminal view formate in all frame
    Thanx to Advance.
    ARjun...

    ????????

  • Data transfer B/W parent windonw and child window with out java script

    hi ,
    i am using h:outputLink Tag to open child window , i am unable to pass parent window text box value to child window with out java script , Here i am using two different backing beans for parent and child windows . Plz help me .

    Hi -- I pass details between pages regularly. The following has worked for me:
    ApplicationFactory factory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
    ValueBinding binding = factory.getApplication().createValueBinding("#{beanName}");
    BeanName beanProperty = (BeanName) binding.getValue(FacesContext.getCurrentInstance());
    ... then set the you can set the values. Can't recall if I need to use SaveStates for the items. Probably if you use request scope beans.

  • Creating a New Folder in Windows Registry by java coding

    Good morning,
    hi to all,
    how can I create a New folder in Window Registry using Java coding. Can anybody help me out pls.
    I begin waiting for ur reply.
    Thanx

    Why do you feel you need to write to the Windows registry directly? Take a look at the Preferences class.
    {color:#0000ff}http://java.sun.com/javase/6/docs/api/java/util/prefs/Preferences.html{color}
    luck, db

  • Opening a new URL in an existing browser window from a Java application

    I've tried one of the many codes to open a new browser window and it works, but I need something else.
    Is there any way to open a new URL on the same window on a Java desktop application? (Changing the URL on the current browser window without opening a new one, I mean).

    You can do that by using an add-on such as:
    * NewTabURL - https://addons.mozilla.org/firefox/addon/newtaburl
    * New Tab Homepage - https://addons.mozilla.org/firefox/addon/new-tab-homepage
    Another way of opening the home page in a new tab is to middle click on the home button in the navigation toolbar.

  • DVD optical drive no longer works with Windows under bootcamp or parallels

    For some strange reason, the DVD optical drive- Optiarc 5680 on my 27" iMac, no longer works anymore with Windows under Parallels or Bootcamp. It used to work perfectly fine before, but now it just shows up with a yellow exclamation mark under Device Manager and Code 39 "Windows cannot load the device driver..."
    The DVD drive continues to still work fine with OSX. But it won't work anymore under Windows via Parallels or bootcamp, despite trying to uninstall the optical device drivers, update, reinstall, etc. Anybody else experiencing this or have any ideas?

    Finally found the solution for anybody else who runs into this problem. It was solved by doing a registry mod in Windows from this site:
    http://aumha.org/win5/a/xpcd.php#problems
    described in “My CD drives have vanished (from Explorer, Device Manager, etc.)”
    After applying the registry changes the DVD optical drive worked instantly again with Windows....sigh...guess I can't blame the Mac on this one.

  • Is it necessary to have an scjp certification to be a java programmer

    hi i have been programming in java for quite some time now , i have heard a lot about SCJP .
    Right now i am in college doing my grad. and java is not a part of our curriculum
    i am quite comfortable with java and want to make my career as a java programmer.
    i just want to know one thing from some professionals on the forum that is it very necessary to have an SCJP Certification if i want to apply in some big companies as a java programmer since i wont be having any other certifications that i have done java .
    please tell me if it would be good for me if i do an SCJP course
    Regards

    hi i have been programming in java for quite some
    time now , i have heard a lot about SCJP .
    In that case you should already know the answer to your stated question...
    i just want to know one thing from some professionals
    on the forum that is it very necessary to have an
    SCJP Certification if i want to apply in some big
    companies as a java programmer since i wont be having
    any other certifications that i have done java .
    Can't hurt, probably won't help either.
    please tell me if it would be good for me if i do an
    SCJP course
    Formal training never hurts.

Maybe you are looking for

  • Passing values from a FORM to another FORM

    Hi, I have to pass values from FORM "A" to FORM "B". What is the best way to do this?\ Can I use a GLOBAL variable? Thanks, Marc.

  • How do I print a million dots on a single sheet of 8.5x11 paper?

    Hi, I have something I want to print which is a little off the beaten path, so to speak.  I know next to nothing about printing so I need help.  I am doing this for educational purposes to TRY to get across the concept of large numbers to elementary

  • Logon Page Customization in SAP Portal 7.31

    Hi Experts, I am planning to change the look and feel of the Logon Page for Portal. The current page is already a customized one. For making the changes, I requested and got the following files. 1. tc~sec~ume~logon~ui.war from <drive>:\\usr\\sap\\<SI

  • Imported avi files video choppy, audio okay

    Had to resort to using Dazzle bridge with Pinnacle HD 14 to get D8 tapes captured to laptop. Clips play fine if i just click on them. They are avi files. When I import clips to Premiere (I don't like Pinnacle) the audio is okay but video is choppy -

  • Validate server availability with utl_tcp

    Hi, I'm using plsql code to process a request and send back a valid URL (some kind of Load Balancing between two hosts). For example, one asks for an Oracle Forms Server and the database could return any of those two servers : http://host1.domain.loc