Classes in solaris

Hi.
I'm reading about zones in solaris, and I see really often the word "class".
What's that kind of concept in solaris?
Thank you

The code (specifically the package and import statements), as well as the directory structure where you have your class files, as well as the exact command used to compile would help.
But the problem is a combination of your package declarations, classpath, and compilation destination (combined with source file location).
Edit: And damn, I'm slow.

Similar Messages

  • SMC 4: Java Application Classes on Solaris 10 system

    Dear all,
    after installing SMC 4.0 without any errors I try to start the Console on the
    Solaris 10 platform by running "es-start -c &".
    After put in the Login Information SMC shows this message:
    An error occurred loading Java application classes.
    Verify installation of the Server components.
    Any idea what's wrong here?
    THX, Rainer

    @bobby
    =======
    1. Could not start the Web interface: Connection was refused when attempting to contact hostname:8080
    2. The /var/opt/SUNWsymon/install/setup_hostname.. file says:
    Could not start Java server
    Could not start Grouping service
    3. I used then "es-stop -A followed by "es-start -A" and checked via "svcs -a" the services:
    online 16:01:33 svc:/system/webconsole:console
    online 16:16:32 svc:/application/management/sunmcwebserver:default
    online 16:16:43 svc:/application/management/sunmcdatabase:default
    online 16:16:59 svc:/application/management/sunmctrap:default
    online 16:17:01 svc:/application/management/sunmccfgserver:default
    online 16:17:03 svc:/application/management/sunmcevent:default
    online 16:17:09 svc:/application/management/sunmcagent:default
    online 16:17:13 svc:/application/management/sunmctopology:default
    online 16:17:52 svc:/application/management/sunmcmetadata:default
    online* 16:18:15 svc:/application/management/sunmcjavaserver:default
    Nevertheless no chance to login.
    Rainer

  • Problems with Factory CXmlCtx, xmlnode class on Solaris

    Hi,
    I am using Oracle 10g XDK and Iam facing the following problem in Solaris (this works fine in IBM AIX and HP-UX).
    CXmlCtx* ctxp = new CXmlCtx();
    Factory< CXmlCtx, xmlnode>* fp;
    fp = new Factory< CXmlCtx, xmlnode>( ctxp);
    parser->domparser = fp->createDOMParser(DOMParCXml, NULL);
    The code dumps a core at the 4th line (createDOMParser) function. The code was compiled with SunWSPro compiler /opt/SUNONE8/SUNWspro/bin/cc.
    Any pointers to the resolution of this issue will be appreciated.
    Thanks

    Yes, that is the Factory pattern you describe. The client programs are going to call your createFoo() method and get back an instance of a subclass of Foo. Typically this pattern is used where there is some external entity that determines what subclass will be returned -- for example a system property -- and the client programs call createFoo() with no arguments. In this case reflection is used to create the instance, and your base class does not need to know anything about any subclasses.
    However, if your client programs can influence the choice of subclass, then they will have to pass some kind of parameter into createFoo(). At this point, createFoo() requires some decision logic that says "create this, or that, depending on the input parameter". And if that parameter is simply a code that enables the client programs to say "Give me a ChocolateFoo instance", then returning "new ChocolateFoo()" is the most straightforward design. But in this case, why can't the client program do that?
    If you don't like the base class having to know about subclasses (and you shouldn't be happy if it does), then you could have a helper class -- FooFactory -- that contains only the static method createFoo(). This class would know about Foo, and about any of its subclasses that it can produce instances of. It's still a maintenance point, no avoiding that, but at least it is off by itself somewhere.

  • Calling a static method from another class

    public class Command
        public static void sortCommands(String command, String order, List object)
             if(command.equalsIgnoreCase("merge") && order == "a")
                  object.setAscending(true);
                  Mergesort.mergesort(object.list);                  // line 85
    }and
    public class Mergesort
         public static void mergesort (int[] a)
              mergesort(a, 0, a.length-1);
         private static void mergesort (int[] a, int l, int r)
         private static void merge (int[] a, int l, int m, int r)
    }Error:
    Command.java:85: cannot find symbol
    symbol : variable Mergesort
    location: class Command
    Mergesort.mergesort(object.list)
    What am I doing wrong here? Within the Command class I am calling mergesort(), a static method, from a static method. I use the dot operator + object so that the compiler would recognize the 'list' array. I tried using the
    Mergesort.mergesort(object.list);notation in hopes that it would work like this:
    Class.staticMethod(parameters);but either I am mistaken, misunderstood the documentation or both. Mergesort is not a variable. Any help would be appreciated, I have been hitting a brick wall for hours with Java documentation. Thanks all.

    [Javapedia: Classpath|http://wiki.java.net/bin/view/Javapedia/ClassPath]
    [How Classes are Found|http://java.sun.com/j2se/1.5.0/docs/tooldocs/findingclasses.html]
    [Setting the class path (Windows)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html]
    [Setting the class path (Solaris/Linux)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html]
    [Understanding the Java ClassLoader|http://www-106.ibm.com/developerworks/edu/j-dw-javaclass-i.html]
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • Installing Solaris 8 on a Compaq Deskpro EN

    I'm having trouble just getting started. After selecting which drive to boot from (IDE), I get the error:
    /pci@0,0/pci-ide@7,1/ide@1/cmdk@0,0:a: can't open - no VTOC
    Help!!!!

    Hello,
    I just wanted to point you to the Sun System Handbook page for the F280R, but to my surprise the note is lacking from the current <b>public/free</b> version !!!
    This is a quote from the <b>Quick Facts</b> of a formerly public SSH
    <table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Quote:</b></td></tr><tr><td class="quote">
    Solaris 8 1/01requires specific patch installations. See 816-1712 for details.
    Solaris 8 10/01 is the minimum OS for 900MHz Cu modules.
    </td></tr></table>
    <b>READ ME: Important Patch Installation Required Sun Blade 1000 Sun Enterprise 280R</b> is available from docs.sun.com.
    The Blade 1000 and the Sun Fire 280R use the same systemboard, but a Enterprise 280R doesn't exist.
    Either get Solaris 8 7/01 or Solaris 8 10/01 (for 900Mhz Cu) or a more current version of Solaris 8.
    If you have a service contract, you can notify Sun (ssh-feedback&#64;sun.com) about this omission. It's your time and money you have spent when you got stuck ...
    Michael

  • Installing Solaris 8 on a SunFire 280R

    The SunFire 280R has 11 external disks. Disk 11 has Solaris 9 installed.
    In attempting to install Solaris on another disk, the following message appears at the command "boot cdrom" command:
    krtld: load_exec: fail to expand cpu/$CPU
    krtld: error during initial load/link phase
    panic-boot: exit to 64 returned from client program.
    Program terminated.
    Do you have any ideas on how to solve this?
    Is Solaris 8 (1/01) unable to installed on a 64-bit machine?
    Objective: I'm trying ot have both Solaris 8 and Solaris 9 on the same processor.
    Thanks for your insights.

    Hello,
    I just wanted to point you to the Sun System Handbook page for the F280R, but to my surprise the note is lacking from the current <b>public/free</b> version !!!
    This is a quote from the <b>Quick Facts</b> of a formerly public SSH
    <table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Quote:</b></td></tr><tr><td class="quote">
    Solaris 8 1/01requires specific patch installations. See 816-1712 for details.
    Solaris 8 10/01 is the minimum OS for 900MHz Cu modules.
    </td></tr></table>
    <b>READ ME: Important Patch Installation Required Sun Blade 1000 Sun Enterprise 280R</b> is available from docs.sun.com.
    The Blade 1000 and the Sun Fire 280R use the same systemboard, but a Enterprise 280R doesn't exist.
    Either get Solaris 8 7/01 or Solaris 8 10/01 (for 900Mhz Cu) or a more current version of Solaris 8.
    If you have a service contract, you can notify Sun (ssh-feedback&#64;sun.com) about this omission. It's your time and money you have spent when you got stuck ...
    Michael

  • Solaris 10 with Trusted Extensions - Security Audit Events [short] Descript

    {color:#000000}I know that the security audit events and classes in Solaris 10 have changed when viewing these files: audit_class, audit_event, and audit_control with that of the same files for TSOL8. In order to perform an accurate and acceptable review of the audit events, I need to find either a file or document that provides a short description for each of the audit events within each audit class. Can anyone point me in the right direction or a URL? I have tried to search through the Sun docs and have not yielded any results. {color}

    been there, done that
    The problem is a function of your network definitions. The non-global zones do not have an IP address to match for your global zonename. The error message results from the system established default of the DISPLAY variable failing (DISPLAY=globalzonename:0.0).
    To confirm this, login to the global zone as root and "zlogin -S" to the non-global zone. Once there, the command "netstat -r" should show the IP address of the global zone instead of the expected global zonename. (combine this with a look at your output for "ifconfig -a" within the same non-global zones) Another command you should fail with will be the "getent hosts galaxy". Anyway, if you manually set your DISPLAY variable to the "IP Address" of the globalzonename and execute a "dtterm" ... it should work fine.
    If it does not violate a security policy, I suggest you add the IP address of the global zone to either the /etc/inet/hosts or /etc/inet/ipnodes file within each non-global zone.

  • Cannot Access class

    class file for pick.ShapeList not found
           for(int i = 0; i < gooi.shapeInfo.size(); i++)Hi
    Above is the error thats popping up when I compile. This happens when I edit other classes and try compiling. For some strange and intriguing reason this problem is rectified when I edit the ShapeList class and compile. But it resurfaces when I edit other classes and compile.
    Any help is appreciated.
    Both the class(i.e. ShapeList class and the class where ShapeList is instantiated) are in the same package "Pick".
    public pick.ShapeList shapeInfo = new pick.ShapeList();
    package pick;
    import java.util.ArrayList;
    import javax.media.j3d.Shape3D;
    public class ShapeList {
        ArrayList<Shape3D> sArray = new ArrayList<Shape3D>();
        ArrayList<String> sTypeList = new ArrayList<String>();
        public void ShapeList(){
        public void add(Shape3D shape, String shapeType){
        sArray.add(shape);
        sTypeList.add(shapeType);
        public Shape3D getShape(String shapeType){
            Shape3D sp = null;
            for(int i = 0; i < sTypeList.size();i++){
                if(sTypeList.get(i).matches(shapeType)){
                    sp = sArray.get(i);
                    break;
            return sp;       
        public Shape3D getShape(int i){
            return sArray.get(i);
        public String getShapeType(int i){
            return sTypeList.get(i);
        public void remove(String shapeType){
            for(int i = 0; i < sTypeList.size();i++){
                if(sTypeList.get(i).matches(shapeType)){
                    sArray.remove(i);
                    sTypeList.remove(i);
                    break;
        public int size(){
            return sTypeList.size();
    }

    [Javapedia: Classpath|http://wiki.java.net/bin/view/Javapedia/ClassPath]
    [How Classes are Found|http://java.sun.com/j2se/1.5.0/docs/tooldocs/findingclasses.html]
    [Setting the class path (Windows)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html]
    [Setting the class path (Solaris/Linux)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html]
    [Understanding the Java ClassLoader|http://www-106.ibm.com/developerworks/edu/j-dw-javaclass-i.html]
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • Wrong Machine Class

    We receive the following error when trying to compile on 64 bit Solaris 7 using SunWorkshop 5:
    ld: fatal: file cdemo6.o: wrong machine class
    Has anyone seen this message before and if so were they able to resolve the problem.
    Thanks in advance

    Hi,
    I found following technote on related subject.
    Technote suggests the method to diagnose this problem.
    Thanks
    Kalpesh
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    SYNOPSIS: Compilation error message "ld: fatal: wrong machine class"
    OS: Solaris/SunOS
    PLATFORM: Generic
    OS VERSION: 7
    TECH AREA: OS
    PRODUCT: Utilities
    KEYWORDS: ld wrong machine class cc LD_OPTIONS
    DESCRIPTION: What to do when the compiler emits the error message "ld: fatal: wrong
    machine class"
    SOLUTION: This error message can be printed when the user attempts to link binaries
    compiled for different architecture. Here is an example compilation which
    can cause problems.
    An application is built using two C files (foo.c foo1.c).
    cc -c foo1.c
    cc -c foo.c -xarch=v9
    cc -o foo foo.o foo1.old: fatal: file foo.o: wrong machine class
    ld: fatal: File processing errors. No output written to foo
    A quick check with the "file" command will show the problem:
    file *.ofoo.o: ELF 64-bit MSB relocatable SPARCV9 Version 1
    foo1.o: ELF 32-bit MSB relocatable SPARC Version 1
    Note that foo.o was built as a Sparc V9 binary.
    That was a very simple example. With more complex link phases, the problems
    could be far more obscure. In that case, there is a linker variable
    which may help. The "-D files" flag will print the files which the
    linker is opening. A simple way to set the flag is to set "LD_OPTIONS='-D
    files'" in the environment.
    export LD_OPTIONS="-D files"
    cc -D files -o foo foo.o foo1.odebug: file=/opt/SUNWspro/SC5.0/lib/crti.o [ ET_REL ]
    debug: file=/opt/SUNWspro/SC5.0/lib/crt1.o [ ET_REL ]
    debug: file=/opt/SUNWspro/SC5.0/lib/values-xa.o [ ET_REL ]
    debug:
    debug: file=foo.o rejected: ELF class mismatch: 32-bit/64-bit
    debug:
    ld: fatal: file foo.o: wrong machine class
    ld: fatal: File processing errors. No output written to foo
    This output could help track down the miscompiled binary.

  • Class not defined

    Hi,
    The following is coming up with no classes defined. What have I missed?
    thank you, your help is most appreciated.
    * Main.java
    * Created on 24 April 2006, 23:20
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package wimax;
    import java.io.*;
    import java.rmi.*;
    * @author Robert J Holdcroft
    class Distance {
    // The input to the program - ie the distance
    Distance () throws IOException {
    BufferedReader in = new BufferedReader
    (new InputStreamReader(System.in));
    System.out.println("Please enter the distance you are from the base" +
    " station ");
    String Distance = in.readLine();
    System.out.println("You have entered " + Distance);
    public void main(String args) throws IOException {
    new Distance();
    }

    Hi,
    Put the public in, ran from the command line and
    got....
    Exception in thread "main"
    java.lang.NoClassDefFoundError:
    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • Monetary value as double

    I have to do a program which prompts for and reads a double value representing a monetary amount. It has to determine the fewest number of each bill and coin needed to represent that amount, starting with the highest (maximum size needed a ten dollar bill). So far, this is all I have for my code. But I am really having trouble on the calculation part I just don't know how to start. Thanks for your help.
    import java.util.Scanner;
        public class Program_2_9
       //This program will prompt for and read a double value. Then determine
       //the fewest number of each bill and coin needed to represent that
       //amount, starting with the highest(10 dollar bill is the maximum size
       //needed).
           public static void main(String[] args)
          //Declaration section
             double pennies,nickels,dimes,quarters,dollar;
             int total;
             Scanner scan = new Scanner(System.in);
          //Read coins value as a double value
             System.out.println("Enter amount of dollars(double value): ");
             dollar= scan.nextDouble();
             System.out.println("Enter amount of quarters(double value): ");
             quarters= scan.nextDouble();
             System.out.println("Enter amount of dimes(double value): ");
             dimes= scan.nextDouble();
             System.out.println("Enter amount of nickels(double value): ");
             nickels = scan.nextDouble();
             System.out.println("Enter amount of pennies(double value): ");
             pennies = scan.nextDouble();
         

    Here's some info on classpath:
    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • I am a newbie plz help me out

    Hello,
    I am writinf g the very first program and got stuck, the program is :
    class Tirtha
    public static void main(String args [])
    System.out.println("Hello World !!");
    I saved the program as Tirtha.java in the Bin folder in j2sdk, but when I compile I find no error but durin the runtime I am having a error saying :
    Exception in thread "main" java.lang.NoClassDefFound Error :Tirtha
    This error also exists even whwn I try to run any program given in the book(The complete reference Java 2).
    Please help me out.
    Thank You
    Tirthankar

    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • Error While Checking the Preview

    Hi experts,
    I had the requirement of submitting the inquiry details and getting the inquiry number,when i developed the application in Webdynpro , and deployed and run the application.It is working fine.
    When I created an i view for this ,and tested the preview  it throws the error below
    Please  help me on this
    Helpful answer is awarded
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException  failed to create or init instance of model com.solar.Bapi_Inquiry_Createfromdata2_Input in scope APPLICATION_SCOPE with instanceId null"
    failed to create or init instance of model com.solar.Bapi_Inquiry_Createfromdata2_Input in scope APPLICATION_SCOPE with instanceId null
    com.sap.tc.webdynpro.progmodel.model.api.WDModelException  The type of model represented by class com.solar.Bapi_Inquiry_Createfromdata2_Input is not compatible
    Thanks
    madhu

    Hi
      check for the BAPI execution in the backend and see if it is working fine . 
      and please provide the error stack , this could help in soleving  your problem .

  • How to capture output of java files using Runtime.exec

    Hi guys,
    I'm trying to capture output of java files using Runtime.exec but I don't know how. I keep receiving error message "java.lang.NoClassDefFoundError:" but I don't know how to :(
    import java.io.*;
    public class CmdExec {
      public CmdExec() {
      public static void main(String argv[]){
         try {
         String line;
         Runtime rt = Runtime.getRuntime();
         String[] cmd = new String[2];
         cmd[0] = "javac";
         cmd[1] = "I:\\My Documents\\My file\\CSM\\CSM00\\SmartQ\\src\\E.java";
         Process proc = rt.exec(cmd);
         cmd = new String[2];
         cmd[0] = "javac";
         cmd[1] = "I:\\My Documents\\My file\\CSM\\CSM00\\SmartQ\\src\\E";
         proc = rt.exec(cmd);
         //BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
         BufferedReader input = new BufferedReader(new InputStreamReader(proc.getErrorStream()));
         while ((line = input.readLine()) != null) {
            System.out.println(line);
         input.close();
        catch (Exception err) {
         err.printStackTrace();
    public class E {
        public static void main(String[] args) {
            System.out.println("hello world!!!!");
    }Please help :)

    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • How to include .jar file in our classpath

    I want to do serial communication.I have one demo program but in it they mention that set comm.jar file in your class path.Then how can I set comm.jar file in my class path?

    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassName
    javac -classpath .;<any additional jar files or directories> YourClassName.java

Maybe you are looking for