Whether java run in UNIX can call java run in win NT?

Hi,
I want to create a Java class run in Unix and this class will create a socket call to another Java class which is run in Window NT platform, Is it possible to do that ?
Is it have same java coding to have socket call in UNIX enviroment ? when the data is text string , is it possible for the java program in window NT read the same text string after it receive it from the socket ?
Thanks a lot

It should be entirely possible.
If you wrap the streams in an ObjectInputStream and ObjectOutputStream you can just send and recieve a string as a Java object via serialization.

Similar Messages

  • Unix System Calls using Java

    Hi!
    Can anyone tell me how to do Unix System Calls in my Java program?
    If possible please give me the java code for it taking one unix system call as an example.
    Thanks in advance
    Raj

    do you mean firing off a shell command, or making actual kernel API calls or C library calls?
    for shell commands, have a look at Runtime.exec(). for kernel calls, use JNI. the JNI FAQ mentions something called "shared stubs" that may be of use:
    http://java.sun.com/products/jdk/faq/jnifaq.html
    cheers,
    p

  • How do i make UNIX system calls in Java app?

    Is it possible to make UNIX system calls in a java app? I.E. perform a file copy/move to another machine within a program.
    Thanks,
    Erik

    If there is a command line tool then you use Runtime.exec() otherwise you have to use JNI.
    If you want to access shared libraries you might want to look at www.swig.org

  • How i can call java program in VB2005 ?

    Hi members...
    Please...please...please...
    If any one now how i can call java program in VB.net program and open it ,please i want now the way to do it by details and by examples and step step to do it ,,..
    thanks ...

    If your server does not return to the command prompt, write a java programm which starts your server and returns to the command prompt.
    An example for an application like this:
    import java.io.IOException;
    public class StartApp
    public static void main(String[] args)
    if (args.length > 0)
    StringBuffer cmd = new StringBuffer();
    for (int index = 0; index < args.length; index++)
    cmd.append(args[index] + " ");
    try
    Runtime.getRuntime().exec(cmd.toString());
    catch (IOException ioe)
    System.out.println("Error: command not found: " + cmd.toString());
    else
    System.out.println("Error: missing arguments");
    An example for starting your server with that programm:
    /usr/bin/java -jar ./StartApp.jar /usr/bin/java -jar ./myServer.jar
    It works. Have fun.

  • How to check whether Java 3d is using hardware acceleration?

    Hi
    I just started looking into Java3d api. I am going through the tutorial examples. When I run it on Windows with JDK1.4.2, the app runs, but taskmanager shows cpu usage is around 55% of my 3GHz Intel processor.
    I am sending the following VM parameters
    -Djava.library.path=C:\progra~1\Java\Java3D\bin -Dj3d.rend=ogl -Dj3d.debug=true
    I tried Direct3D as well by passing -Dj3d.rend=d3d. I don't see much difference in cpu usage. The sample I am playing is the one where you create a ColorCube and rotate it on a timeline. Pretty straight forward code taken from the tutorial.
    I am wondering
    a) Why is my cpu at 55% if it is using h/w acceleration?
    b) Is there any way to find out whether Java is using software renderer vs h/w renderer.
    I used sys internals processexp tool to look at the stack of java thread that is spinning the cube. I don't see any references to opengl or j3d dlls in the call stack.
    I appreciate ur help.
    Thanks

    check this link, it queries the properties of your system:
    http://download.java.net/media/java3d/webstart/test/QueryProperties.jnlp

  • How do i know whether JAVA  is installed or not in my virtual machine .

    Good Morning everyone !
    I am installing oracle 11.2.0.1.0  on oracle Enterprise Linux 5.5
    While trying to create database through tool (dbca), I am getting following error.
    $ dbca
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0x9fcc43e4, pid=9242, tid=3086391504
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode)
    # Problematic frame:
    # C [libnnz11.so+0x3c3e4]
    # An error report file with more information is saved as hs_err_pid9242.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    Aborted
    I suspect JAVA may be not compatible for my machine.
    How Do I check whether java is installe or not.
    Vmware machine Version is : 9
    $ uname -ir
    2.6.18-194.el5 i386
    $ echo $ORACLE_HOME
    /u01/app/oracle/product/11.2.0/db_1
    $ echo $LD_LIBRARY_PATH
    /u01/app/oracle/product/11.2.0/db_1/lib:/lib:/usr/lib

    @ Srini ,  AsifMuhammad
    My host system is 64  bit
    My guest system is 32 bit
    MY HOST SYSTEM INFORMATION  (
    System Information
    Time of this report: 10/16/2013, 20:44:07
           Machine name: ORACLE-LINUX-PC
       Operating System: Windows 7 Ultimate 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.130801-1533)
               Language: English (Regional Setting: English)
    System Manufacturer: System manufacturer
           System Model: System Product Name
                   BIOS: BIOS Date: 07/05/11 19:20:42 Ver: 08.00.14
              Processor: AMD Phenom(tm) II X4 B60 Processor (3 CPUs), ~3.3GHz
                 Memory: 8192MB RAM
    Available OS Memory: 7936MB RAM
              Page File: 4064MB used, 11803MB available
            Windows Dir: C:\Windows
        DirectX Version: DirectX 11
    DX Setup Parameters: Not found
       User DPI Setting: Using System DPI
    System DPI Setting: 96 DPI (100 percent)
        DWM DPI Scaling: Disabled
         DxDiag Version: 6.01.7601.17514 32bit Unicode
    MY GUEST  ( vmware version 9)  details
    # uname -a
    Linux oel5.linuxserver 2.6.18-194.el5 #1 SMP Mon Mar 29 20:06:41 EDT 2010 i686 athlon i386 GNU/Linux
    Installed package details : For RHEL 5 (32-bit): 
    rpm -Uvih binutils-2*
    rpm -Uvih compat-libstdc++-33*
    rpm -Uvih elfutils-libelf-0*
    rpm -Uvih elfutils-libelf-devel-0*
    rpm -Uvih elfutils-libelf-devel-static-0*
    rpm -Uvih gcc-4*
    rpm -Uvih gcc-c++-4*
    rpm -Uvih glibc-2*`uname -p`*         ---------------------------->  I cannot install this package.
    rpm -Uvih glibc-common-2*
    rpm -Uvih glibc-devel-2*
    rpm -Uvih glibc-headers-2*
    rpm -Uvih kernel-headers-2*
    rpm -Uvih ksh-20*
    rpm -Uvih libaio-0*
    rpm -Uvih libaio-devel-0*
    rpm -Uvih libgcc-4*
    rpm -Uvih libgomp-4*
    rpm -Uvih libstdc++-4*
    rpm -Uvih libstdc++-devel-4*
    rpm -Uvih make-3*
    rpm -Uvih numactl-devel-0*
    rpm -Uvih sysstat-7*
    rpm -Uvih unixODBC-2*
    rpm -Uvih unixODBC-devel-2*
    kernal settings
    # Controls the maximum number of shared memory segments, in pages
    kernel.shmall = 268435456
    net.ipv4.ip_forward = 0
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.conf.default.accept_source_route = 0
    kernel.sysrq = 1
    kernel.core_uses_pid = 1
    net.ipv4.tcp_syncookies = 1
    kernel.msgmnb = 65536
    kernel.msgmax = 8192
    kernel.shmmax = 4294967295
    kernel.shmall = 1073741824
    fs.file-max = 6815744
    kernel.msgmni = 2878
    kernel.sem = 250 32000 100 142
    kernel.shmmni = 4096
    net.core.rmem_default = 4194304
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 1048576
    fs.aio-max-nr = 3145728
    net.ipv4.ip_local_port_range = 9000 65000
    I have followed :  A quick step by step guide for oracle 11g R2 installation on Red Hat Enterprise Linux 5.
    Please have a look and  relply me  , any changes needed.
    Thanks ..

  • Cannot run java application in Win XP

    I worte a java application(a Swing app), I test it and run under win NT, it works fine for me.
    Then I recompile it in my WinXP using j2sdk1.4.1_02, run it in a command prompt, but it does NOT start up the application, I check the window task manager, a java.exe already startup and it eat up 100% CPU of my XP, but the application never been startup.
    My Swing application is not a JApplet but a JFrame.
    Does anyone have the similiar problem?
    Thx in advance
    Henry

    Try adjusting your path settings to stop using the MS VM (did you recently use win update?):
    My Computer->Properties -> Advanced -> Environment Variables
    System Variables -> "Path"
    If it currently starts with:
    %SystemRoot%\system32;...
    change it to:
    .;%JAVA_HOME%\bin;%SystemRoot%\system32;...
    If you haven't set JAVA_HOME, create a new variable like:
    JAVA_HOME = C:\j2sdk1.4.1_02
    Note that using the ".;" before path makes the current dir's executables take prevalence over a same-named executable in a subsequent path.
    Putting "%JAVA_HOME%\bin" before "%SystemRoot%\system32" makes certain that the current java.exe gets used (not Micro$oft's java.exe)
    Try it, hope it helps,
    Georg.

  • Steps involved in writing java application on win CE

    I want to develop a java application in win CE platform for a handheld device.
    1. What are all the steps involved.
    2. Is there any simulator available for win CE so that I can run my java application.
    Advance thanks,
    Regards,
    Balasubramaniam.K.R
    [email protected]

    The way I developed my first app for the Compaq iPAQ
    1. Install PersonalJava
    2. Build app using AWT classes only (although I think SWING can be used)
    3. Screen size 240 x 295 (thats what I used)
    4. Compile and run on PC
    5. Move to PPC (fingers crossed)
    6. You may want to add an app.LNK file (kinda like a *.bat file) to setup classpath and file args
    Sun has a compatibility suite you can run against your app to make sure it is PJava compliant. http://java.sun.com/products/personaljava/javacheck.html
    Also make sure you don't use classes/methods that aren't supported
    There is a PJava emulkation environment, but I never used it.
    http://java.sun.com/products/personaljava/pj-emulation.html
    ...good luck

  • Does flex can call vbscript function ?

       i am not sure does flex or action script can call vbscript function .
    how can i get detail information . thank you!

    Adobe does not provide such a capability.  Folks have created ways to call
    Java I believe, and ExternalInterface will call JavaScript.  And you can use
    sockets.  And NativeProcess from AIR apps.

  • HELP!!! How I can call to EJB from another EJB??

    I have two EJBs, for each EJB I have a jar, how I can call to EJB jar to another???
    I have tried the following, in the first EJB I have import the second EJB jar and call it with context, lookup, PortableRemoteObject etc.. but the instruction lookup not find the second EJB reference.
    The name in the lookup instruction is the JNDI name of the second EJB but not find a reference to it.
    Please help me!!! Thanks!!
    The error is:
    javax.naming.NameNotFoundException: Missing node. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
         at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
         at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.extract(NotFoundHelper.java:50)
         at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:161)
         at com.inprise.j2ee.jndi.java.CorbaContext.resolveName(CorbaContext.java:242)
         at com.inprise.j2ee.jndi.java.CorbaContext.lookup(CorbaContext.java:261)
         at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:483)
         at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:493)
         at com.inprise.j2ee.jndi.java.javaContext.internal_lookup(javaContext.java:493)
         at com.inprise.j2ee.jndi.java.javaContext.lookup(javaContext.java:937)
         at com.inprise.j2ee.jndi.java.javaContext.lookup(javaContext.java:942)
         at javax.naming.InitialContext.lookup(InitialContext.java:350)
         at ejbclient.EnterpriseClientBean.addition(EnterpriseClientBean.java:115)
         at ejbclient.EnterpriseClientBean.actionPerformed(EnterpriseClientBean.java:97)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at avax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstr

    ok.. Here it goes.. I am writing a sample code..
    public class EJB1LogBean implements SessionBean {
    // test is a method of stateless session beam
    public void test ( TestVal val )
    throws RemoteException{
    try {
    EJB2LogHome ejb2Home= (EJB2LogHome)getHome("java:comp/env/ejb/EJB2LogHome",1);
    EJB2Log ejb2Log = ejb2LogHome.create ( val );
    } catch ( CreateException e ) {
         System.out.println("Create Exception occurred ");
         e.printStackTrace();
         } catch ( RemoteException e ) {
         System.out.println( "RemoteException Occured");
    e.printStackTrace();
         throw new RemoteException () ;
         } catch(Exception ee) {
    ee.printStackTrace();
    private EJBHome getHome(String jndiName,int type) {
    try {
    Context context = new InitialContext();
    Object ref = context.lookup( jndiName );
    switch(type)
    case 1:
    EJB2LogHome ejb2LogHome = ( EJB2LogHome )
    PortableRemoteObject.narrow( ref, EJB2LogHome.class );
    return ejb2LogHome;
    } catch ( Exception e ) {
    e.printStackTrace();
    return null;
    }//EJB1LogBean ends
    Here as you can see, EJB1LogBean(session bean) is calling a second EJB, EJB2LogBean (entity bean). TestVal is a sample value object passed. It is plain java class and can vary from app to app and it has got nothing to do with ejbs.
    "java:comp/env/ejb" is a J2EE standard and while getting a home interface, you have to append the home interface class name to "java:comp/env/ejb". Here I am passing "java:comp/env/ejb/EJB2LogHome" and "1" to getHome method, whose job is to get a reference to a home interface. getHome method is a local method. "1" is passed just to give a flexibility to getHome method as you can have more ejbs to invoked. In that case, you can go on adding different case statements for 2, 3 etc.
    The only thing you have to keep in mind is that your deployment descriptor for EJB1LogBean will contain the entires for both the beans i.e. for EJB1LogBean and EJB2LogBean. This is because EJB2LogBean is wrapped by EJB1LogBean.
    Hope this helps.
    Please let me know if you need anything more.
    - Amit

  • All data and messaging works on my note 4, but last night the cellular phone service just went dead.  I can call people but the line is just silent, and people can call me, it rings, but I can't hear them.  ?????

    all data and messaging works on my note 4, but last night the cellular phone service just went dead.  I can call people but the line is just silent, and people can call me, it rings, but I can't hear them.  ????? What is wrong with it????  How do I fix it????

    You aren't attached to a bluetooth headset or other device for some strange reason?  Or even an automobile bluetooth, I have a friend that has this issue with his Prius because even when it is not running the bluetooth is still active and connects to his phone.

  • Is there a phone number I can call to talk to a live person about help with Lightroom issues ?

    Is there a phone number I can call to talk to a live person about help with Lightroom issues ?

    well the reason I wanted to talk to someone live because it would take forever to explain everything on here But anyway, here goes. I have an HP Pavilion Notebook with Intel Core i5-323om CPU @2.60 GHz and 8 gb ram 64bit. I am trying to run Lightroom 5.7 on my laptop and having major issues. I use an external hard drive for the storage of my photos. When I try to use Lightroom I run into many issues: Flickering of the screen, freezing up, slow, the loading circle just goes round and round lol. If I go to the washroom or leave the computer for even a minute it freezes up. I have to keep pressing Ctr/alt/delete to bring it back when it flickers. I have to constantly exit out of the program and restart it to be able to edit even just a couple of photos and then it starts acting up again.
    I have tried un-installing and re-installing, updating everything on my pc, changing compatibility settings, updating development settings, I even took the laptop into have it looked at and they did all kinds of updates etc...and still couldn't figure out why it wasn't working for me. I have gone through the lists of troubleshooting for LR problems and there just seem to be nothing that works.....I have made new catalogues, moved them, tried using the software on my pc without the EHD, etc etc.......I have tried EVERYTHING...I think.....so I was looking for some answers as to why this is happening....

  • Is there a way that I can call a Swing application

    Hi all,
    Is there a way that I can call a Swing application from html page.
    fox example when user clicks on the url in html will activate a swing local application
    thanks

    Assuming the local swing application is running, and you have an applet in the browser that has permissions to communicate with a server other than the originating server, you could use RMI or a regular socket connection.
    Due to the obvious security issues to letting javascript or an applet free access to the local machine, this is not something that a browser really supports.

  • How to check whether MRP run has been executed for a sales order or not

    Dear Experts,
    In Strategy:20, Make to Order scenario, I have run MRP for sales order in T Code:MD50,
    then how can I check whether MRP run has been executed for a sales order or not.  Is there any report where I can find some indication?
    Thanks and regards,
    Vikas

    Dear,
    In MTO scenario with Planning strategy group 20 in material master .
    After sales order is created, Run MRP , then planned order will be created then go to planned order details in MD04 or MD12 you will get sales order number in assigment tab.
    or check the Table PLAF field  PALTR ,and field name KDAUF its sales order, for all created planned order.
    Regards,
    R.Brahmankar

  • Whether i will able to avail call facilities with my ipad(Cellular) by not jailbreaking it? If not now, whether apple has any future plans to implement the same?

    Whether i will able to avail call facilities with my ipad(Cellular) by not jailbreaking it? If not now, whether apple has any future plans to implement the same?

    An iPad is a tablet, not a phone, they do have plans, it's called an iPhone....
    While it has celluar data this isn't hte same as a celluar line or ability to make phones, can you imagine how stupid you'd look with a tablet against your ear?
    Skype, Google +, Facetime, all wonderful ways to have calls

Maybe you are looking for

  • Firefox will not start,no msg.I am now running with I E. clsosed ok.

    Nothing happens no msg,no errors.Checked task mngr.Firefox was active and i closed it.It came up ok,the next morning it happened again,checked TM but fire fox was not active.I tried to uninstall 8.0 and install again.I get a msg to close Firefox befo

  • Email wont open at all?

    I updated my phone recently and now my emails wont open at all. it goes to a blank screen with refresh and new button at the bottom then just shuts down to the home screen.  All of my email accounts are set up correctly and were working fine before,

  • I have the most recent/current version of firefox, but my gmail says I do not. Please help!

    I have version 19.0, but when I try and open out gmail, it keeps sayting we do not have the lates browser and to please update it. I HAVE the latest firefox. The same thing happens when we try and open our msn mail as well

  • Cannot Sync iPhoto Subscriptions to Apple TV - why?

    Hello I have subscribed to few other people's .Mac Galleries where the photos now appear in my iPhoto gallery under Subscriptions. They automatically update when they add new photos or make changes. However they don't appear to be syncing to my Apple

  • Paragraphs with upper titles

    I'm writing a technical information book with many tables. In fact, there is no text... I've set a hierarchical structure with numbered list from step 1 to 4. Here is the problem: When there is no content between 2 steps (2 and 3 in eg., de two title