Java & linux

Need to consult you guys about running java in Linux from ssh.
I have ssh profiles in my workstation. I supposed to install one open source java program into linux environment. I'm using windows xp. ..I have transferred the program into server and now about to install it into linux.
Please give some pointers what should I do...any online tutorial link would be appreciated.
I have these errors when I tried to compile java program from my ssh shell command. what could be the reason?
Mode.java:3: package test.tool does not exist
import test.tool.Check;
                        ^
Mode.java:15: cannot resolve symbol
symbol  : variable Check
location: class Mode
            ^
2 errorsThis problem's not encountered when I run program from windows prompt- get correct results.
Perhaps someone could advise me. thanks

Need to consult you guys about running java in Linux
from ssh.Compiling isn't the same as running.
I have ssh profiles in my workstation. I supposed to
install one open source java program into linux
environment. I'm using windows xp. ..I have
transferred the program into server and now about to
install it into linux.
Please give some pointers what should I do...any
online tutorial link would be appreciated.
I have these errors when I tried to compile java
program from my ssh shell command. what could be the
reason? Why don't you just compile it in windows?
Mode.java:3: package test.tool does not exist
import test.tool.Check;
^
olve symbol
symbol  : variable Check
location: class Mode
^
de]
This problem's not encountered when I run program
from windows prompt- get correct results.When you compile it - not run it. Or are you running an installation program that does all of this for you?
If compilation then you did something on your windows box to correctly set the class path.
If the second then it is the installation program that is the problem - you might want to verify that app that is being installed will run at all on linux before you bother figuring out what the problem is.

Similar Messages

  • 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?

  • Get current path in Java LINUX?

    Hi,
    I m trying to get the current path of file using the getAbsolutePath.Its works fine (gets the current working directory) in Windows both in debug & release mode.Whereas, in LINUX ,It is not working.
    i.e.,It gets home path instead current path while running in release(by clicking jar file).
    File objfile = new java.io.File("SampleCloud.txt").getAbsoluteFile();
    JOptionPane.showMessageDialog(null, objfile.getAbsolutePath());
    Message box display home path instead of current path on linux.
    I dont know why its so.Ur help would be appreciated.
    System.getProperty("user.dir")
    I used it but its also taking the home dir path on linux
    Sonal
    Edited by: 850979 on 13-Apr-2011 06:04

    Thanks for your reply.
    I have copied the .jar file in a new directory under <user name>/Documents. The SampleRTLCloud.txt is also in the same directory. How do I get the path of the directory where the application is run from?
    Your help will be much appreciated.
    Sonal

  • Java / Linux - why ??? instead of non-ascii symbols

    Hi All,
    I've run into the problem during creating a new file from Java program on Linux gentoo.
    All non-ascii characters in the file name are converted into ??? symbols.
    I've tried to run the program with -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8, and set LC_ALL='UTF-8' - but the problem still exists.
    At the same time I can create the files with non-ascii characters in the file manager.
    Could you advise how can I fix this issue?
    Regards,
    Boris

    Is it related to File name or File content ?
    If it is file name related then Linux might have restriction on File name character !!.
    About File Content : Make one File reader program using Java and check are you able to read it back. if yes then It will be fault of your FileManager which is not correctly interpret content of your file.

  • Java, Linux and gcc 3.x

    I recently put RedHat 8.0 on my linux box and then Java 1.4.1. There are obvious problems as RH8 uses gcc 3.2 and Java uses gcc 2.96. There is a bug about this, too, I know, but it has been closed by Sun with the comment "we don't support Mozilla". Sigh.
    How have others taken this? It seems, to me, to be an extremely ignorant stance on Sun's part. What can I (we) do about this? I am very close to moving back to C++, given that Sun does not seem like they care much about the Linux community.
    B

    I agree - this has nothing to do with Mozilla. There are several threads on the forums discussing the fact that the Sun JVM does not play nicely with gcc3.x since the JVM is compiled with 2.95. All sun would have to do is spend the time to release a version of the JVM compiled with a more recent gcc.
    Regarding your options, we have had success using the blackdown JVM, which comes in both a 3.2 and 2.95 version.
    Gil

  • Java - linux Classpath

    Hi I am new to Linux classpath. I am using Fedora Core 5 which comes along with jdk1.4.2. I read one of the messages that are posted in another form and set the classpath in the linux in the /etc/profiles folder. The below code I added over there:
    JAVA_HOME=/usr/java/jdk1.5.0_08
    export JAVA_HOME
    PATH=$PATH:$JAVA_HOME/bin
    CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/htmlconverter.jar:$JAVA_HOME/lib/jconsole.jar
    export PATH CLASSPATH
    Now when i run javac -version it is showing the below output.
    javac 1.5.0_08
    javac: no source files
    But when I run java -version it is showing me the below output.
    java version "1.4.2"
    gij (GNU libgcj) version 4.1.1 20060525 (Red Hat 4.1.1-1)
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    I don't understand what mistake I am doing. Please guide me and i would like to know how it is showing 1.5 for javac version and 1.4.2 for java version.
    Thanks in advance.
    Srikanth

    This has nothing to do with the classpath and all to do with the PATH.
    Somewhere, you have a 1.4.2 JRE in the PATH, before the 1.5.0 JDK and it's JRE.
    So if you call javac, it will execute 1.5.0's because the 1.4.2 JRE doesn't have it, but java will be 1.4.2's because that the first one it'll find.

  • Cannot run java (Linux)

    I just downloaded and installed java JDK 1_5_0_05 (rpm file) for my machine (PC with Linus ES 3.0). When I try to run javac on the command line, I get the following error:
    Error: could not find libjava.so
    Error: could not find Java 2 Runtime Environment.
    What am I missing?
    Thanks
    plaval
    email: [email protected]

    (PC with Linus ES 3.0).First, I don't know that Linus would like that there are multiple versions of him. Perhaps you meant something like RedHat Linux Enterprise Server 3.0.
    Anyhow, I'm guessing that there was already a Java install on your machine, though probabaly not one from Sun. If you're familiar with RPM's then I would start by doing an "rpm -qa | grep -i java" to see what other Java installs may be on the machine. Multiple versions can reside on a single machine but you need to make sure that your PATH environment variable is set to "your" JVM's bin directory and that your JAVA_HOME is set to the base of your JVM.
    Let us know what other issues you have.
    Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.
    Sure they're new - come get them started!

  • #### instead national lang in message window sapgui70R7/java/linux?

    Hi, guru!
    SAPGUI/Windows (not /java) put message ok...What problem may be into platinGui/Linux version?
    nw07/oracle10/solaris10
    Thanks attention
    Skif

    Bytes after screen output and re-input
    SAPgui                         4110           Unicode UTF-8                    
    Application servers            4103           UTF-16LE Unicode / ISO/IEC 10646 
                                   E           /           C                                 
             Display                    4103           UTF-16LE Unicode / ISO/IEC 10646 
             Default settings           4103           UTF-16LE Unicode / ISO/IEC 10646 
             Input                      4103           UTF-16LE Unicode / ISO/IEC 10646 
    Test method                    ABAP list processing                  
    System                         S11    
    Date                           28.01.2009           09:17:10
    Language - Russian
    Logon string:
    conn=/H/host/S/3200
    Symbols typed & display - ok. Display in message/WinGui - ok. Display in message/PlatinGui/fc9 - '###'

  • Connect o8iEE by Java Linux

    Hi:
    I just come to migrate from 8iSE to EE
    I Have problems connecting via ThinConn
    My java program try to acces a contCD db by
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@mopti:1521:DBI",
    "bpazb", "paz");
    But I have this answer:
    [paz@mopti java]$ java thinConn
    java.sql.SQLException: Broken pipe
    at java.lang.Throwable.<init>(Throwable.java:40)
    at java.lang.Exception.<init>(Exception.java:21)
    at java.sql.SQLException.<init>(SQLException.java:51)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:line unknown, pc 0x82cd1ce)
    at oracle.jdbc.driver.OracleStatement.close(OracleStatement.java:line unknown, pc 0x82c79d7)
    at oracle.jdbc.driver.OracleConnection.initUserName(OracleConnection.java:line unknown, pc 0x828bdc2)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:line unknown, pc 0x81e2b34)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:line unknown, pc 0x81bda74)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:line unknown, pc 0x81f37bc)
    at java.sql.DriverManager.getConnection(DriverManager.java:90)
    at java.sql.DriverManager.getConnection(DriverManager.java:132)
    at thinConn.main(thinConn.java:23)
    Any idea please. Thanks. Bernardo Paz
    [email protected]

    I'm using the oracle 8i EE version for linux
    glibc 2.1 (the last one)the JDBC is just 8i.
    Could it be usefull.
    I had some problems installing no links maked, no ThinConn installed and other but I solved this problems, Oracle SQL is working fine now. But remote connection imposible.
    Thanks for your help.
    Bernardo
    [email protected]

  • Java/LINUX horrible ERROR

    I am having a horrible error of which I have no idea..
    I am in the beginning stages and its only yesterday that I started working with java in LINUX. I was trying to send and receve some data from the serial port. I am using a Sun ONE Studio.
    I used the RXTX and installed the same by reading instructions.
    I dint get this error in the beginning but after running a couple of times I started getting this error.
    First the error was "NoSuch Port Exception" It gave way to
    "RXTX WARNING: This library required the user running applications to be in group uucp. Please consult the INSTALL documentation.
    check_lock_status: No permission to create lock file."
    Any help will be highly appreciated. I depend on you guys to help me with this as I suppose that you are the best guys in JAVA
    Thanks
    JOhn

    1) You should never directly edit /etc/group (or /etc/passwd). If you're on RedHat, you can use the redhat-config users program (nice GUI). Or you use the vigr program that will cleanly edit both the /etc/groups and the "shadow" copy. In both files, you need to add the user to the uucp group.
    2) You should never set system resources, especially anything in /dev, to 777. In the event of a malicious user (or cracker), you've just opened a very large hole in your system.
    3) Do what Bruno_Antunes said. Basically, repeat #1 above for the group "lock."
    4) Do not run anything as root unless you absolutely must, especially programs that access system resources. If you must, I strongly suggest you start reading up on PAM.

  • 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);
    }

  • Java,Linux,Oracle

    hi evbudy
    i m new user joined this forum
    plz suggest me how can i connect my java applet with oracle over Fedore core
    and plz suggest how can i run it from my pc(which is a linux server)
    thanx

    Try this tutorial for a basic introduction to DB based Swing applications.
    http://www.oracle.com/technology/obe/obe1013jdev/adf_swing/master_detail_page_adfswing_bc.htm

  • MySQL, java, & linux

    which one should i download if i have mandrake8.1?
    Binary packages (tar.gz)
    MySQL 3.23.44 Linux (Intel libc6 systems) (7.1M) Download
    MySQL 3.23.42 Linux (Alpha) (8.2M) Download
    MySQL 3.23.44 Linux (IA64) (5.7M) Download
    MySQL 3.23.44 Linux (Sparc) (4.9M) Download
    MySQL 3.23.36 Linux (S/390) (5.6M) Download
    RedHat packages (rpm)
    MySQL 3.23.44 Server (i386) (5.9M) Download
    MySQL 3.23.44 Benchmark/test suites (i386) (687K) Download
    MySQL 3.23.44 Client programs (i386) (1.7M) Download
    MySQL 3.23.44 Libraries and Header files for development (i386) (765K) Download
    MySQL 3.23.44 Client shared libraries (i386) (234K) Download

    which one should i download if i have mandrake8.1?
    Binary packages (tar.gz)
    MySQL 3.23.44 Linux (Intel libc6 systems) (7.1M)
    Download
    MySQL 3.23.42 Linux (Alpha) (8.2M) Download
    MySQL 3.23.44 Linux (IA64) (5.7M) Download
    MySQL 3.23.44 Linux (Sparc) (4.9M) Download
    MySQL 3.23.36 Linux (S/390) (5.6M) Download
    RedHat packages (rpm)
    MySQL 3.23.44 Server (i386) (5.9M) Download
    MySQL 3.23.44 Benchmark/test suites (i386) (687K)
    Download
    MySQL 3.23.44 Client programs (i386) (1.7M) Download
    MySQL 3.23.44 Libraries and Header files for
    development (i386) (765K) Download
    MySQL 3.23.44 Client shared libraries (i386) (234K)
    DownloadWhat hardware are you using? If you are using an Intel-
    based machine, you should use the first one in the list.
    If you are going to do development, you might need the
    second to last one. For client use only, you will need
    the last one.
    Regards,
    Mark

  • Java+Linux is faster than C#+windows?

    Is this always true even Java is running under JVM? May someone explains why even under JVM is faster?

    always? no.
    sometimes? sure.
    Depending on the application, the runtime environment, the hardware, other resources in use, etc. etc. etc.

  • Problem Creating New Client in SAP NW2004s ABAP+JAVA LINUX

    Hi,
    I installed successfully NW2004s dual stack on linux vmware (SUSE10 enterprise server). This stack give me two client by default, 000 and 001. System gives me default user sap* and password: sapn4sadm
    I want to implement the process for BW enabling, and I want to create New Client for it. I have been used SCC4 to create a new client by logging on with the Client 000, but the problem start, when I log-on with the new client.
    Client: 002
    User: sap*
    Password: pass
    I have tried system default password of sap* , but that also dosen't help.
    It doesn't work, I also try RZ10 to change the value of login/no_automatic_user_sapstar = 0, but I don't find any profile , when I click on the profile field, i get the message "Profile not found". I am not figuring out where I am doing wrong.
    How can I success to create a new Client in which i could log on with sap* user. Please Help me
    All  yours help would be highly rewarded.
    Obaid.

    In order to edit profiles In RZ10, you must first import them.
    Menu: Utilities --> Import Profiles --> Of Active Servers
    After this you can add your parameter.
    One alternative is to edit the profile directly with vi, restart the system, do all client copy tasks, remove the parameter with vi, restart the system again and then import the active profiles.
    the profiles are located in directory
    /usr/sap/<SID>/SYS/profile
    and the filename is something like this
    <SID>_DVEBMGS<instancenr>_<hostname>

Maybe you are looking for

  • Shipping cost determination is incomplete

    HI to all I am an SD consultant, I am facing the following issue, I request you give some suggestion for solving the issue ISSUE: When I am creating billing document (delivery related) using VF01 - I am getting the ERROR: 0000500095 000010 Shipment 0

  • CONNECT BY PRIOR question

    Hi, I have following problem Table TMP contains following data ID PID 1 2 1 3 2 select t.id from tmp t where level=(select max(level) from tmp t2 connect by prior t2.pid=t2.id start with t2.id=&ID) connect by prior t.pid=t.id start with t.id=&ID Sele

  • What's the best FCP6 easy setup for HD shot on Canon XHA1?

    Hi, I'm sorry to ask such a novice question, but I want to make sure I'm starting correctly. Anyone have advice on the best easy setup to use for a project that will be predominantly footage shot in HD at 30P on the Canon XH-A1? It will also include

  • Airplay access through python script-win32com

    Hi, I am looking at automation to access  airplay accessories through iTunes. For example: When itunes running on windows discovers its Airplay accessory like Speaker, we will be able to see the Airplay Icon getting highlighted and we will be able to

  • Dreamweaver Renaming help

    Hi, I took over a project for someone and a bug was assigned to me saying that we needed to change the a few of our folder names within the site. I'm not too familiar with dreamweaver but it is what we used to create the site. I tried renaming 1 of t