Java on HP-Unix?

Does Java currently on HP-Unix? I'm hoping to run Tomcat on one of thoose buggers, together with MySQL.
Any tips appreciated.
Andreas

It sure is: http://www.hp.com/products1/unix/java/

Similar Messages

  • Java program in UNIX environment

    Hi All,
    Could you please help me with how to configure a java program in UNIX environment..
    that is to schedule it to run every day from cron..
    I need to know what are the basic things we require to achieve the above..
    I guess it is:
    A script
    A config file containing db login details
    oher than this I don?t know what is required plz help

    You can execute any jar or class file with cron. If you are using a jar you might use something like java -jar /usr/bin/myapp.jar .
    I use Linux, this is my area of expertise.
    Here is an online guide "for complete newbies" on how to set up cron.
    http://www.unixgeeks.org/security/newbie/unix/cron-1.html
    Hope it helps.

  • Urgent Help in java accross the UNIX platform

    If I develop an application using Java in SCO Unix, Is it possible to port the same application to HP Unix or AT & T Unix. Please kindly give me the infomation/details where it is available or how to do it. Need urgent
    Thanks in Advance
    Jyothi

    If I develop an application using Java in SCO Unix, Is
    it possible to port the same application to HP Unix or
    AT & T Unix.Should port with no changes.

  • Java develoment in unix or windows

    Sometimes people ask u 'have u done java development in unix or wondows'. Whats the difference between developing java apps in unix or windows

    also if you have developed under windows, and a few different unix platforms (Mac OS X, linux, solaris, HP/UX etc..) then you learn where the "Write Once, Run Anywhere" slogan doesn't quite hold (don't get me wrong this is usually in trivial ways)
    eg. GUI layout needs a once-over on each platform usually just to make sure everything looks sensible, you may have relied on a behaviour of an API that was coincidental rather than in the spec, and another platform has implemented differently
    there are also real-world deployment problems like users running your program on a machine that hasn't been patched properly, or hitting bugs in the API that only exist on one platform

  • Execute java program on UNIX

    I have no experience on Unix and I now need to try to execute my java program on UNIX server to which I connect using telnet. I have copy my source file to the server and I could run the javac command to compile my source code.
    In the current directory, I just execute "javac mySource.java"
    And I got my .class file on the same directory. But when I tried to execute "java mySource", I got NoClassDefFoundError. I think it has something to do with classpath. But I just don't know how to do it in UNIX. Please someone assist me. Thanks.

    Or setenv CLASSPATH $CLASSPATH:/your/classpath/here if you are running csh.

  • How to use Entrust with java application on unix platform

    Hi all,
    i have question regarding the use of Entrust with java application on unix
    1)I want to use Entrust for encryption/decryption of the file in my core java application on unix platform.
    What should be requiremnet for the same and how it is implemented?.
    2) I want to Use Entrust for Authentication purpose in my java based web application on unix platform.
    What are requirements for Entrust Authentication and how it is implemented ?

    any one has solution?

  • Call a Java API using Unix Script

    Hi SDNers,
    I want to call a Java API using Unix Script. Please suggest what will be the commands in Unix.
    Please help!!
    Thanks,
    Priti
    Edited by: Priti Rani Patnaik on Jul 7, 2010 4:17 PM

    Hi
    Try this
    String[] cmd = {"/bin/sh", "-c", "ls > hello"};
      Runtime.getRuntime().exec(cmd);
    [Other Help|/thread/5425832 [original link is broken];
    BR
    Satish Kumar

  • Running Java app on UNIX

    Hi all, Any kind of help is much appreciated.
    I am trying to run a Java program on Unix which also imports packages of a 3rd party vendor.
    I run it from the directory where i have my MyProgram.java file stored and also provide the classpath for the .jar/.zip files of the 3rd party vendor (using -classpath option with javac)
    Compiling is clean with no errors.
    But, on running the java command: java MyProgram
    It gives me java.lang.NoClassDefErrorFound for a class which came with the 3rd party vendor.
    The class is present in the .jar file, which I provided in the -classpath option with javac. There are many other classes present in the same .jar file which are being used in the program but it just gives the error for this particular class.
    -I also tried by saving that class in my current directory and compiled it with
    javac <-classpath> MyProgram.java 3rdVendor.java
    command and created its .class file in the current directory but then again using java command from the same directory gives the same error: java.lang.NoClassDefFoundError
    Plzz....help
    Thanx Shaan

    here is the command i used
    javac -classpath .:/home/top/MyName/dir1/jcommom-0.9.7/jcommon-0.9.7.jar:/home/top/MyName/dir1/jfreechart-0.9.21/jfreechart-0.9.21.jar DyanmicChart.java
    COMPILATION IS WITH NO ERRORS
    and then I run java from the same directory where i have DynamicChart.class built
    java DynamicChart
    error in class Main : java.lang.NoClassDefFoundError for org/jfree/data/time/RegularTimePeriod
    RegularTimePeriod is present in jfreechart-0.9.21.jar and its .java file is located in the folder jfreechart-0.9.21/source/org/jfree/data/time/RegularTimePeriod.java
    There are lot of other classes that I use from .jar files mentioned in the classpath but its just this one class. I also saved the RegularTimePeriod.java file in the pwd to built its .class in the current directory and compiled it using the above (javac) command with DynamicChart.java. AGAIN NO COMPILATION ERRORS...but the same error when i run: java DynamicChart
    Shaan

  • How to check for java version in unix?

    hi,can anyone tell me how to find the java versionin AIX unix?

    In addition to Annie's answer: if you mean to get it in your code, then do this:
    String version = System.getProperty("java.version");
    System.out.println("Java version: "+version);

  • Running a .jar with a java program on unix

    I am trying to run a jar file with this java code but when i run it, it comes up with built successfully but the file doesn't run.
    ps- I use a unix os
    public class Main {
    public static void main(String args[]) throws IOException, InterruptedException {
    // first method i tried:
    Runtime.getRuntime().exec( new String[] {"/bin/sh", "-c",
    "/Users/cb/NetBeansProjects/MultiCalc/dist/MultiCalc.jar output.out ascii workload2.trace 0"});
    //second method i tried:
    ProcessBuilder pb = new ProcessBuilder( new String[] {"/bin/sh", "-c",
    "/Users/cb/NetBeansProjects/MultiCalc/dist/MultiCalc.jar"});
    pb.redirectErrorStream( true );
    pb.start();
    thanks a lot in advance!

    javalavaguava-- wrote:
    I am trying to run a jar file with this java code but when i run it, it comes up with built successfully but the file doesn't run.
    ps- I use a unix os
    public class Main {
    public static void main(String args[]) throws IOException, InterruptedException {
    // first method i tried:
    Runtime.getRuntime().exec( new String[] {"/bin/sh", "-c",
    "/Users/cb/NetBeansProjects/MultiCalc/dist/MultiCalc.jar output.out ascii workload2.trace 0"});
    //second method i tried:
    ProcessBuilder pb = new ProcessBuilder( new String[] {"/bin/sh", "-c",
    "/Users/cb/NetBeansProjects/MultiCalc/dist/MultiCalc.jar"});
    pb.redirectErrorStream( true );
    pb.start();
    thanks a lot in advance!I don't see any mention of 'java' when trying to execute the jar file. You have to specify which application should process a jar file - it doesn't magically know to use java.
    P.S. You should read the 4 sections of [http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html] and implement ALL the recommendations.

  • Please help me with the error of Java related to UNIX

    Can you help me with my code?
    I wrote a Java program and ran it in gdb, the debugger said that :
    (gdb) run handhelditems 1 1000
    Starting program: /home/wqq/crawl/handhelditems/crawl_what_i_want handhelditems 1 1000
    [Thread debugging using libthread_db enabled]
    [New Thread -1208232256 (LWP 3796)]
    [New Thread -1210332272 (LWP 3799)]
    [New Thread -1220822128 (LWP 3800)]
    [New Thread -1231311984 (LWP 3801)]
    [New Thread -1243206768 (LWP 3802)]
    [New Thread -1253696624 (LWP 3803)]
    [New Thread -1264186480 (LWP 3804)]
    [New Thread -1274676336 (LWP 3805)]
    [New Thread -1285166192 (LWP 3806)]
    [New Thread -1295656048 (LWP 3807)]
    [New Thread -1306145904 (LWP 3808)]
    [New Thread -1316635760 (LWP 3809)]
    Program received signal SIGPWR, Power fail/restart.
    [Switching to Thread -1316635760 (LWP 3809)]
    0x00196402 in __kernel_vsyscall ()
    (gdb)
    the crawl_what_i_want.java is :
    public class crawl_what_i_want {
         public static void main(String[] args){
              if(args.length!=3){
                   System.out.println("Usage: java crawl_html [site name] [start at] [end at]");
              else
                   String v1 = args[0];
                   int v2 = Integer.parseInt(args[1]);
                   int v3 = Integer.parseInt(args[2]);
                   thread thread0 = new thread(v1,v2,v3,0);
                   thread thread1 = new thread(v1,v2,v3,1);
                   thread thread2 = new thread(v1,v2,v3,2);
                   thread thread3 = new thread(v1,v2,v3,3);
                   thread thread4 = new thread(v1,v2,v3,4);
                   thread thread5 = new thread(v1,v2,v3,5);
                   thread thread6 = new thread(v1,v2,v3,6);
                   thread thread7 = new thread(v1,v2,v3,7);
                   thread thread8 = new thread(v1,v2,v3,8);
                   thread thread9 = new thread(v1,v2,v3,9);
                   thread0.start();
                   thread1.start();
                   thread2.start();
                   thread3.start();
                   thread4.start();
                   thread5.start();
                   thread6.start();
                   thread7.start();
                   thread8.start();
                   thread9.start();
    the thread.java is :
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.net.*;
    public class thread extends Thread
         String site_n;
         int s_at;
         int e_at;
         int for_id;
         thread(String site_n,int s_at,int e_at,int for_id){
              this.site_n = site_n;
              this.s_at = s_at;
              this.e_at = e_at;
              this.for_id = for_id;
         public synchronized void run() {
              String site = site_n;
              int fornum = for_id;
              int start = s_at;
              int end = e_at;
              //String site_name = "http://www."+site+".com";
              ArrayList url_list = new ArrayList();
              ArrayList url_id_list = new ArrayList();
              try{
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
                   String getconn = "jdbc:mysql://localhost/url_set_"+site+"?user=xxxx&password=xxxx";
                   Connection conn = DriverManager.getConnection(getconn);
                   PreparedStatement stmt = conn.prepareStatement("");
                   ResultSet rs = null;
                   stmt = conn.prepareStatement("select url,url_id from urls where url_id>=? and url_id<=?");
                   stmt.setInt(1,start);
                   stmt.setInt(2,end);
                   rs = stmt.executeQuery();
                   while(rs.next())
                        url_id_list.add(rs.getString(2));
                        url_list.add(rs.getString(1));
                   if(rs!=null)
                        rs.close();
                   stmt.close();
                   conn.close();
              catch(Exception e){
                   e.printStackTrace();
              try{
                   InputStream in = null;
                   InputStreamReader rd = null;
                   BufferedReader br = null;
                   for(int i=fornum; i<url_list.size(); i=i+10){
                        String save_dir = "./" + String.valueOf(Integer.parseInt(url_id_list.get(i).toString())/10000) + "/" ;
                        try{
                             if(!(new File(save_dir).isDirectory()))
                                  new File(save_dir).mkdir();
                        catch(Exception exp){
                             exp.printStackTrace();
                        String html = "";
                        URL this_url = new URL(url_list.get(i).toString());
                    in = this_url.openConnection().getInputStream();
                    rd = new InputStreamReader(in);
                    br=new BufferedReader(rd);
                    String line = br.readLine();
                    int imgmark = 0 ;
                    while(line != null){
                        html += line + (char)13;
                        //  get image  //
                        if(line.indexOf("product image(s) bof")>0)
                             imgmark = 1;
                        if(line.indexOf("product image(s) eof")>0)
                             imgmark = 0;
                        if(imgmark == 1 && line.indexOf("img src")>=0)
                             int bofimg = line.indexOf("http://www.unix.com/images/");
                             int eofimg = line.indexOf("jpg\"")+3;
                             if(eofimg>bofimg){
                                   String imgURL = "http://www."+site+".com/" + line.substring(bofimg,eofimg);
                                   String imgdir = save_dir + url_id_list.get(i).toString() + ".jpg";
                                   getpic gp = new getpic();
                                   gp.crawlpic(imgURL,imgdir);
                        line = br.readLine();
                     br.close();
                     rd.close();
                     in.close();
                        if(html==null)
                             html = "";
                        if(html.length()>0){
                             String saveTo = save_dir+ url_id_list.get(i).toString() +".html";
                             try {
                                  new outPut(html, saveTo);
                             } catch (IOException e) {
                                  e.printStackTrace();
                             System.out.println((i+start) + ". Saved " + url_list.get(i) + " as " + (i+start) + ".html");
                        else
                             System.out.println((i+start) + ". failed at " + url_list.get(i));
                   if(br!=null)
                        br.close();
              }catch (Exception e){
                   e.printStackTrace();
    the outPut.java is :
    import java.io.*;
    public class outPut {
            public outPut(String content, String outPutFile)throws IOException{
                    FileWriter fl = null;
                    BufferedWriter bw = null;
                    try{
                            File f = new File(outPutFile);
                            if(!f.exists())
                                    f.createNewFile();
                            fl = new FileWriter(outPutFile);
                            bw = new BufferedWriter(fl);
                            bw.write(content);
                    finally{
                            if(bw!=null)
                                    bw.flush();
                            if(fl!=null)
                                    fl.flush();
                            if(bw!=null)
                                    bw.close();
                            if(fl!=null)
                                    fl.close();
    the getpic.java is
    import java.io.*;
    import java.net.*;
    public class getpic {
            public synchronized void crawlpic(String url, String savedir)throws Exception {
                InputStream in = null;
                InputStream inBuffer = null;
                OutputStream out = null;           
                try{
                    URL this_url = new URL(url);
                    in = this_url.openConnection().getInputStream();
                        inBuffer = new BufferedInputStream(in);
                        out = new FileOutputStream(savedir);
                        while(true){
                        int bytedata = inBuffer.read();
                        if(bytedata == -1)
                        break;
                        out.write(bytedata);
                finally{
                    if(out != null)
                            out.close();
                    if(inBuffer != null)
                            inBuffer.close();
                    if(in != null)
                            in.close();
    }above are all my code .
    On the other hand, the codes can be run at JDB, but it will lose some thread after run for some minute or seconds.

    Hi aarthi,
    SELECT can be used to fetch data only from database tables/views. in your case you used SELECT from an INTERNAL table,which is not allowed.
    SELECT  *
           FROM <DBTABLE NAME>
           INTO TABLE EXPORT_REC
           WHERE KEY = IMPORT_ PARAMETER AND   
           IMPORT_PARAM_DATE BETWEEN FROM_DATE AND TO_DATE.
    HERE Instead of <DBTABLE NAME>,you have to give your Database table,which stores these values.
    then your data will comes into EXPORT_REC.
    and remember to give EXPORT_REC in TABLES parameters of that FUNCTION MODULE and give associated Type for that.
    Regards
    Srikanth

  • *Urgent* Deploy java component to UNIX

    Hi everyone,
    I have a little problem, please help.
    I have to write a java executable program
    that will read a XML file parse it and then update the Oracle database version 7.
    I will have to write my code on WinNT, this java execuatable program will be invoked by some other program in UNIX.. I dont have to worry about how to invoke it, beacuse other will have to. My task it only to write the program and store it somewhere on the UNIX file system and tell them where the file is.
    My question is:
    We are using HP and IBM version.
    Do I have to install JDBC to UNIX? Or Do I have to install the JDK or what should the Unix OS should have so that my program can talk to the Database and at the same time use the XML parser.
    Thank you very much for your help
    Lan T

    Hi,
    I don't think that OAS can act as a container for RMI-applications, at least I havent't read about that anywhere. On the other hand, you can easily use rmid from the jdk for that tast, so this shouldn't be the problem.
    What you can do is create an EJB with the JDev-wizard and deploy it to OAS using the deployment wizard. That works fine. But of course, you have to act as an EJB-client to connect to it. (You can find a tutorial for JDev 3.0 on this site choosing Documentation)
    As far as Applicationmodules are concerned, there are wizards included in JDev that let you deploy to OAS. I myself never succeeded in doing so, the wizards and OAS seem to be very buggy. There is a note on metalink.oracle.com: 114335.1 which describes the deployment of Applicationmodules to OAS. Other people report to have succeded, whereas it wouldn't work for me.

  • How I can connect my java application to unix server

    I want to develop simple desktop Application using which I can login and fire simple UNIX command like ls -lrt etc. Can any one guide me to achieve this ?

    Here is a sample program which illustrates connecting to a unix server using SSH protocol.
    The API used is enchanter - http://code.google.com/p/enchanter/
    import java.io.IOException;
    import org.twdata.enchanter.SSH;
    import org.twdata.enchanter.impl.DefaultSSH;
    public class MainSSH {
          * @param args
          * @throws IOException
         public static void main(String[] args) throws IOException {
              SSH ssh = new DefaultSSH();
              ssh.connect("<IP_Address>", 22<port_number>, "<user_name>", "<password>");
              ssh.waitFor("]$");
              ssh.sendLine("ls -lrt");          
              System.out.println(ssh.getLine());
              ssh.disconnect();
    }Thanks,
    Avin

  • PAS/AAS JAVA instances on UNIX/Linux - database component

    Hi SCN,
    Firstly consider this is all UNIX/Linux based...
    In the past when creating AS (or AAS now) SAP dialog instances for ABAP systems I rarely ran a SAPINST process. It was simpler to copy existing profiles and NFS mount the kernel. There is no database component relating to the instances so you could easily add/remove them
    However in Java it seems there is instance data inside the database Java schema, meaning that you have to install/re-install AS/AAS instances using SAPINST/SWPM to ensure these are properly created; otherwise the instance will not connect.
    Does anyone have any details on what constitutes this database component? I would like to look at it with my own eyes and see what makes it up.
    Regards all, Jamie
    AKA doonan_79

    Hi Jamie,
    In case of JAVA, there we have BOX number. If you have a logical host on top of your physical host, then you can go with over scheme. Otherwise, because of BOX number, you have to go with export/import option.
    Refer this thread: Understanding the Java Instance ID issue
    Divyanshu

  • How to run java application in Unix Box

    Hi,
    Would anybody show me how to run my server application in unix box?
    Thank you very much.
    Hung

    Your application should have a main class. Suppose it's called MyMain.class. I'll assume it's in the anonymous package. So you cd to the directory containing the class, and type java MyMainIf it's not in the default package, or is a jar file, say so.

Maybe you are looking for

  • Problem Exporting QuickTime Movie.

    Hey guys, when I vew my project in the canvas it doesn't play smoothly between clips. It's like it gets stuck on the last frame of the first clip for a split second. So I exported it to Quicktime movie and when I play it back and it skips and sort of

  • Will the iphone 5 come to sprint?

    i didnt really know whihc forum this went into. but anyway, i have seen a lot of rumors about the iphone coming to sprint. is that true? thats question 1. question 2 is any idea when its coming out? and question 3 is, im planning to get it within a w

  • ITunes video player... not working

    When I try to play any kind of video on my iTunes, it doesn't work. I have two iTunes programs (work and at home) and they both have this problem, so there has to be something that can be done to fix it. Can someone help? Ipod   Windows XP     Window

  • How to hide a Column

    Gurus Using XSL FO how can i hide a column based upon a value in XML file.Can you please guide Regards Nitin

  • Populatiing UserProfile UDF using Target Reconcilation-OIM 11gR2

    Hi All I want to populate User Profile (UDF created to store AD ID) using target recon from AD(samaccountName) . This field will be used to synch AD password in the AD Password Synch connector . This is beacause we have target reconcilation based on