Java + Linux/Unix

I done with the updating registry values in windows when new hardware is attached, with java programming. When we attache a new hardware it updates the registry values & adds as a seperate item. I want the same thing in linux to change the files when new hardware is attached by java programming.... is it possible?? if yes... can anybody help me to implement this.... Thnx....

hi CeciNEstPasUnProgrammeur,
Actually i have used the lattelib jar file which i have downloaded from net. U just mentioned about the Preferences classes. Can u suggest me how to add the new Registry value in Windows using Preferences class.
if u have code then can u plz help me....
By the way.... the code that I found from the net is as under...
import lattelib.win.*;
import java.util.Date;
import java.text.SimpleDateFormat;
public class RegistryAdd {
// KEYS
     private String ROOT_KEY;
     private Date date;
     private SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy_HHmmss");
// VALUES
     private static final String DESCRIPTION = "Description";
     private static final String DEVICEPATH = "DevicePath";
     private static final String DRIVER = "Driver";
     private static final String FRIENDLYNAME = "FriendlyName";
     public Registry registry;
public static void main (String[] args) throws Exception{
     RegistryAdd r = new RegistryAdd();
if (args[0].equals("-install")) {
     r.install();
else if (args[0].equals("-uninstall")) {
     r.uninstall();
else {
     r.runShow();
public RegistryAdd () {
     date = new Date();
     registry = new Registry();
     ROOT_KEY = "HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Control/MediaResources/msvideo/mSVideo.VFWWDM" + sdf.format(date);
public void install () throws Exception {
     registry.createKey(ROOT_KEY);
registry.setStringValue(ROOT_KEY, DESCRIPTION, "Microsoft WDM Image Capture (Win32)");
registry.setStringValue(ROOT_KEY, DEVICEPATH, "\\?\\usb#vid_0c45&pid_607c#5&13ced455&0&2#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global");
registry.setStringValue(ROOT_KEY, DRIVER, "vfwwdm32.dll");
registry.setStringValue(ROOT_KEY, FRIENDLYNAME,"Microsoft WDM Image Capture (Win32)");
public void runShow () throws Exception {
String hostname = registry.getStringValue(ROOT_KEY, DESCRIPTION);
int port = registry.getIntValue(ROOT_KEY, DEVICEPATH);
int timeout = registry.getIntValue(ROOT_KEY, DRIVER);
String homeDir1 = registry.getExpandedValue(ROOT_KEY, FRIENDLYNAME);
public void uninstall () throws Exception {
registry.deleteKey(ROOT_KEY);
}

Similar Messages

  • Start Java application at system start up linux/unix

    Hi,
    I am working on a application, which needs to run as a background process in linux/unix without the intervention of the user.
    Please give me the details procedure how to make it as background process.
    thanks

    you can make any process a background process by adding an amperstand
    for example:
    java -cp $MyClassPath myAppClass &
    If you want to run it automatically at startup
    you'll have to write a little script which is executed at startup
    and contains a line as above.
    The scripts exectuted at startup are usually located at
    /etc/init.d
    You can use one of those scripts as starting point for your own script.

  • Java ME SDK 3.x for Linux/Unix

    Hi!
    There was talk the last couple of years of a Linux/Unix release for the Java ME SDK 3.x,
    but as of today I see nothing like that at the download site.
    Does anybody know the state of this?
    A Linux/Unix SDK would be very helpful to me in my development work!
    (This is a ping to users, who themselves are Oracle Product Development personnel!)

    Yes, a real need for many developers.
    cherrs

  • Please package Java ME SDK 3.0 for Linux/Unix

    Hi Oracle guys!
    Please package Java ME SDK 3.0 for Linux/Unix soon!
    It would be of benefit both to us developers, and to Oracle.
    Thanks!

    user8771084 wrote:
    Señores Oracle si ustedes no pueden desarrollar Java ME SDK 3.0 for Linux/Unix no importa!!!, igual sabemos que no están a la altura de Sun Microsystems ni de la comunidad de Linux/GNU.
    Si ustedes se deciden lanzar la versión Java ME SDK 3.0 for Linux/Unix se lo agradeceremos, recuerde que Linux/GNU dia a dia crece mas y mas, y es un mercado que se debe cuidar.Translated to English:
    Oracle Gentlemen if you can not develop Java ME SDK 3.0 for Linux / Unix does not matter!,
    As we know are not up to Sun Microsystems or the community of Linux / GNU.
    If you decide to launch the Java ME SDK 3.0 for Linux / Unix appreciate it, remember that GNU / Linux is growing day by day more and more, and is a market that needs to be nurtured.

  • How to execute Java.exe on MAC, LINUX, UNIX...

    okay, I know this is very stupid, but can anybody tell me how to run Java.exe on MAC, LINUX, UNIX?
    I know how to run it from windows, I have a batch file created in windows, will it work on MAC, LINUX and UNIX as well? (I'm not sure if on other OS, there is such a file type call *.bat)

    See what I mean about probably wanting a beginner's book on Unix and/or shell scripting?
    okay crackers, the only thing that I have to do is put
    in the name of my program into "your program here".Not necessarily. There's the ClassPath, program parameters, etc. What you need to put in the "your program here" depends upon your program. What I did was allow the script to be invoked with command-line parameters and you could (depending upon your program) put "-jar myjar.jar" in the indicated spot, if your JAR file was runnable.
    The rest no need to change. right?I don't know. What does your program need? Only you can answer that, not me. I just furnished an example.

  • Linux/Unix style crypt() in Java

    Hello,
    Is there any API for java to do a crypt() that also can be used in Linux/Unix ?
    For example, in Linux/Unix, the password file is create with the "crypt", how can I create this kind of password within Java ?

    I Googled on "unix crypt". The following was on the first page of results. (note that I hadn't even specified "java" in my search criteria):
    http://www.dynamic.net.au/christos/crypt/
    Grant

  • Mount a directory like WEBDEV in windows in Linux/Unix

    I want to access the Files from a linux/Unix machine through a simple thick client . Is it possible to
    mount a directory like WEBDEV in windows in Linux/Unix.

    Here is a java based client that I've used. Just use the http://<hostname@doamin>/files/content for access to your files.
    http://www.ics.uci.edu/~webdav/

  • Is any1 using linux/unix OS?

    hey..this is totally unrelated to java, but im using a linux/unix computer and want to know the command line to get a windows interface window up, rather than the grey screen with the xterm window only...
    can some1 please help.....
    thnx
    lee

    I dont know in linux but in AIX/HP-UX it is dtterm/aixterm

  • Upper case file name in linux/unix env

      Hi All,
    Can anyone please let me know if it is possible to generate pdf names in capital in linux/unix env?? I am able to generate it fine in windows but it always generates in  lower in unix.
    Thanks.

    No, all files used or produced by Documaker on unix platforms will be lower case. Of course, there's nothing to prevent you from renaming the PDF file after it is produced.

  • ORACLE_HOME of 11g on Linux/Unix

    Hi,
    is default ORACLE_HOME of 11g on Linux/Unix as follows :
    /softwares/app/Administrator/product/11.1.0/db_1
    Thanks and regards.

    user522961 wrote:
    Hi,
    is default ORACLE_HOME of 11g on Linux/Unix as follows :
    /softwares/app/Administrator/product/11.1.0/db_1
    Thanks and regards.ORACLE_HOME based on ORACLE_BASE - in your case you set ORACLE_BASE=softwares/app/Administrator/ and OUI selected ORACLE_HOME as /softwares/app/Administrator/product/11.1.0/db_1

  • Launching programs from adobe reader on linux/unix

    I am hoping someone has solved this problem before:
    We use pdf for our product manuals and have a large set of examples that we want to allow the user to open by clicking a button. In past releases (pre 8.0 et al) we have not had a problem opening things and we still don't on windows but now, whenever we click on our open buttons we get text of the file in a browser and can not seem to change this behavior.
    I have modified Nautilus and konqueror such that double clicking on our files open the application but this does not change the behavior.
    Prior to this we were using a script - open script results in launching our application on said example file.
    How can we recover this behavior for our users? it makes our example manuals all but useless on Linux/Unix.
    Thanks!
    Dan F.

    Hi,
    Can you please share the PDF file so we can investigate the issue? You can email it to gaurav at adobe dot com.
    Thanks,
    Gaurav

  • How to open/read file using Java in Unix?

    Hi Friends,
    Can you please help me out how to open/read file using java in unix os? I have create one text file in "/home/test.txt" in unix environment. How to open the same file & read using java code?
    - Hiren Modi

    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Can SAP be used with Linux & Unix...

    Hi there ,
                   I got a query that whether SAP can be used with Unix  & Linux Operating System ...
    Thanks & Regards
    Kaushik Choudhury

    Ýes, Any ERP package can be used at any of the OS with any of the firewall or secure access systems. That is one of the advantages of going for ERP systems over custom applications. Custom applications are OS and database dependent while ERPs are mostly not.
    SAP can be installed in Windows, Linux, Unix in various databases too.
    Hope this helps you.
    Reward if it helps.

  • WebStart support for Firefox Browser using Java Linux AMD64

    I am trying to setup a Firefox browser to use Java WebStart (jnlp).
    I am running Java Linux (AMD64)
    but I have no <JAVA_HOME/jre/plugins directory and no libjavaplugin_oji.so file with the Java installation.
    1) Can I download libjavaplugin_oji.so plugin somewhere?
    2) Will it work in Java Linux (AMD64)?
    3) Can Java Linux (AMD64) be setup to operate Java WebStart Technology?
    If so, How the h--- do I do it?
    Frustrated
    Newbean

    I have the same problem. Downloaded the 64 bit jre and found no libjavaplugin_oji.so in it.
    Then downloaded the 32 bit jre and did the soft link and still no work.
    Has anyone made the 32 bit jre work on the 64 bit linux?

  • Conn between progress 9.1d database(winnt) and Oracle 9.2 on linux/unix

    Hai,
    Iam new to this situation.
    Where i have to establish a connection between
    Prograss Database 9.1D and Oracle on linux/unix.
    For i gone through metalink documents.
    There is procedure like Hetrogenious Services.
    But my question is.
    Is this HSODBC will be installed along with Oracle EE or we have to install.
    If installed how to check that service.
    And to connect to Progress Database we need ODBC drivers for linux.
    I couldn't find from Data-Direct technologies site.If any one know about the link please help me.
    If any one gone through this please tell me the procedure how to over come from this.
    Regards

    If the matrix says "Oracle 9.2.0.5 through Oracle 11.1.0.6.0, 11.2.0.1.0" then that means Oracle 10.2.0.x will be supported.
    It says you need the installer patch if "To use Oracle database 11.2.0.1.0 for any product, you must apply the EPM System Installer patch 11.1.1.3.05. "
    If you are using 10.2.0.x then you will not need to.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • PSUNX failed to post files to the report repository

    Dear All, i've just faced this issue. Before submitting here, this i've tried various things posted on web but not getting the solution,So posting here. If someone might have an idea about this... These are my settings Report Node Definition URL http

  • Initial load methodology

    hello My project is to replicat in real time a JD Edwards database (oracle 10.2.0.4, 1To) with goldengate (11.1.1.1.2 on Aix 6.1) I want to be sure to validate my initial load setup, what I want to do is : 1 -  start extract + pump, begin now  (apply

  • Strange item in 'system preferences'

    I'm running Tiger 10.4.5, and when I first started my Mac, it was on 10.4.2. I have recently noticed an item called 'classic' in 'System Preferences'. I looked around on the forum and it sounded like that would only be there is I had run Mac 0S 9 on

  • Mac OS X 10.6.3

    I just updated to 10.6.3 using the System Update on my first-generation MacBook Pro. I'm now getting a kernel panic at startup, and cannot boot the system. Specifically, I'm seeing: panic(cpu 0 caller 0x2a96f6): "Version mis-match between Kernel and

  • Confirmation in co11 with scrap

    Hi,    My client doing production confirmation in co11 ( operation wise)    they want enter scrap qty in confirmation and scrap material qty in 531 there itself    whether we can enter it in Goods movement screen in co11???? thanks in advance