Yet another ALERT: Cannot create class in system package

I've searched on the forums and seen several postings and none that really explained a solution, just the initial poster replying they fixed the problem. I am new to J2ME and java in general, I'm going off a book and my first test worked fine but this one gives me the the ALERT: Cannot create class in system package, when I select the GO command. The error occurs in the commandAction method where command == go trying to create an alert message. I am using MIDP 2.0 and as I stated new to this whole thing so a detail response would be greatly appreciated and what I need to do to resolve this for now and the future.
Source code for TextBoxTest.java :
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class TextBoxTest extends MIDlet implements CommandListener
   private TextBox textBox;
   private Alert alert;
   private Command quit;
   private Command go;
   public TextBoxTest()
      // Setup the UI
      textBox = new TextBox("Enter Name", "", 20, TextField.ANY);
      go = new Command("Go", Command.SCREEN, 1);
      quit = new Command("Quit", Command.EXIT, 2);
      textBox.addCommand(go);
      textBox.addCommand(quit);
      textBox.setCommandListener(this);
   protected void startApp() throws MIDletStateChangeException
      Display.getDisplay(this).setCurrent(textBox);
   protected void pauseApp()
   protected void destroyApp(boolean unconditional)
        throws MIDletStateChangeException
   public void commandAction(Command command, Displayable displayable)
      try
         if (command == quit)
            destroyApp(true);
            notifyDestroyed();
         if (command == go)
            alert = new Alert("", "Greetings " + textBox.getString(), null,
AlertType.CONFIRMATION);
            Display.getDisplay(this).setCurrent(alert);
      catch (MIDletStateChangeException me)
         System.out.println(me + " caught.");
}

Ok so my problem isn't with the code it's with the build order. I guess I needed to state that I was following a book and trying to compile and preverify through command line and not using the toolkit or an IDE. So if I use NetBeans 5.0 or the Wireless Toolkit 2.5 I can compile fine.
So my new question is, can someone show me the steps to build through command line? This is MIDP 2.0.

Similar Messages

  • Jsr 180 cannot create class in system package.

    Hi,
    I am trying to run the jsr 180 api sip-example midlets from jbuilder. The project buildes fien but when I run it I get the following:
    C:\JBuilderX\j2mewtk2.0\bin\emulator.exe -Xdevice:DefaultColorPhone -Xdescriptor:"C:\Documents and Settings\aishling\jbproject\aisling\lib\sip-examples.jad"
    Running with storage root DefaultColorPhone
    ALERT: Cannot create class in system package
    Execution completed successfully
    398951 bytecodes executed
    8 thread switches
    434 classes in the system (including system classes)
    2473 dynamic objects allocated (82448 bytes)
    3 garbage collections (58908 bytes collected)
    From going through the archives, I thought I should change the name of the package. So I renamed the directory containing the midlet files from /src/examples to /src/aisexamples and updated each file to include package aisexamples. However this just results in another error (22 + 14) unable to create MIDlet aisexamples.
    Please, please can someone let me know whats going on?
    Thanks,
    Aisling.

    i m also facing the same prob can any body help us

  • Cannot create class in system package

    Hello,
    I wrote a J2ME game for nokia S40 phones. It compiles without any errors, but when I'm trying to run in on the Nokia 7210 phone emulator I receive the following message:
    Cannot create class in system package.
    Howerver running on the Nokia 6230 phone emulator is ok.
    I have obfuscated my applet as I read in previous topics, but still it does not work.
    Can anyone help me?
    Thanks,
    Alexander.

    You get that error when you try to reference a class that is part of the MIDP framework but isn't installed on the phone.
    The 7210 doesn't support MMAPI or WMA or MIDP 2.0, while the 6230 does, so check that you don't have any references (even an import statement), to classes from those packages (like the javax.microedition.media.*, javax.microedition.lcdui.game.*,javax.wireless.messaging.*, etc. packages hierarchies).
    shmoove

  • Cannot create class in system package while Using Sprite class

    Hi i developed a game using Sprite class & imported
    javax.microedition.lcdui.game.*; package. But when i tried to build this project it gave me "Cannot create class in system package" error. Worst thing is that now again if i build, then it displays error "package javax.microedition.lcdui.game.*; does not exist" . Pls help me

    First exception means that you tried to create a class with the package name equaling one from the predefined libraries in midp/cldc.
    For your second error, add all the jars you are using into the project's classpath.
    Mihai

  • Cannot create class of type 'flex.samples.factories.SpringFactory'

    I have an application that is trying to use BlazeDS.  I am using Flash Builder 4 Plug-in on RSA 7.5.5.  Any help would be apprecialted!
    Here is the relevant lines in the services-config.xml:
    <factories>
    <factory id="spring" class="flex.samples.factories.SpringFactory"/>
    </factories> 
    I have the flex.samples.factories.SpringFactory in the web projects src folder and verified that it is getting compiled and the class exists in the WEB-INF/classes folder.
    Here is the full stack trace:
    [5/31/11 8:54:44:530 CDT] 00000018 SystemErr     R **** MessageBrokerServlet failed to initialize due to runtime exception: [1]flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:65)
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:47)
    at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:55)
    at flex.messaging.config.MessagingConfiguration.createFactories(MessagingConfiguration.java: 114)
    at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java: 93)
    at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:125)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:220)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:328)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1252)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:161)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtens ionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:882)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:804)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:522)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:359)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedAppl icationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:8 32)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java: 950)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.jav a:2131)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.ja va:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    [0]flex.messaging.config.ConfigurationException: An error occurred trying to construct FlexFactory 'flex.samples.factories.SpringFactory'.   The underlying cause is: 'flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.'.
    at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:72)
    at flex.messaging.config.MessagingConfiguration.createFactories(MessagingConfiguration.java: 114)
    at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java: 93)
    at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:125)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:220)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:328)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1252)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:161)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtens ionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:882)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:804)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:522)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:359)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedAppl icationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:8 32)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java: 950)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.jav a:2131)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.ja va:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    Caused by: flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:65)
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:47)
    at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:55)
    ... 27 more

    You can download it here:
    http://code.google.com/p/rapid-framework/source/browse/trunk/rapid-framework/src/rapid_fra mework_common/cn/org/rapid_framework/flex/messaging/factories/SpringFactory.java
    Am 16.08.2010 um 21:42 schrieb ZéSóZé:
    Sorry http://forums.adobe.com/people/PHANTOMIASA,
    >
    but I need to write what?
    >
    Where is the attached file?
    >
    Thanks for quick answer...
    >
    Best regards..
    >
    José.
    >

  • OVMRU_002030E Cannot create OCFS2 file system with local file server: Local FS OVMSRVR. Its server is not in a cluster. [Thu Dec 04 01:33:10 EST 2014]

    Hi Guys,
    Im trying to create a repository .I have a single node OVM server and have presented two LUN's (Hitachi  HUS110 direct attached (via FC))
    I've created a server pool and unchecked the clustered server pool. I see the LUN's (physical disk from Oracle Virtual manager) .But when creating the repository i'm having this error
    "OVMRU_002030E Cannot create OCFS2 file system with local file server: Local FS OVMSRVR. Its server is not in a cluster. [Thu Dec 04 01:33:10 EST 2014]"
    Any steps i missed?Appreciate anyone's input
    Regards,
    Robert

    Hi Robert,
    did you actually add the OVS to the server pool, that you created?

  • Cannot create InfoArea (Source System ID Problem)

    Hi,
    I cannot create an InfoArea in our BW TestSystem due to the source system ID. I get the following message...
    "Choose a Change Request with Target System CCX"
    The Performance Asst. gives me the following protocol.....
    Diagnosis
    The selected change request CC7K900485 has target system .
    However, the objects you edit can only be recorded in change requests with the target system CCX.
    The correct target system is determined from the package and transport layer to which the object concerned belongs.
    System Response
    The selected change request CC7K900485 is not used to record the objects.
    Procedure
    Either choose a different change request or change the target system of the change request CC7K900485.
    From the prompt window for change requests, you can display all requests you can use by choosing Own requests.
    Alternatively, you can create a new request by choosing Create request.
    For more information, see the SAP Library under BC - Basis Components -> Change and Transport System .
    I have been in the SourceSystem ID Maintenance (CtrlShiftF11) and noticed that all system ID are two lettered. Could you pls explain how I proceed with this problem.
    Thanks,
    SD

    Hi Srinivas.
    Thanks for ur advice. I am on the Requests (Free Selection) screen after going through SE03 and can see the Request CC7K900485. Under that there are a lot of users with comments like "Development/Correction" or "Repair". Could u help me with how I can change the target system to CCX.
    SD

  • Create Classes In Different Packages With Error-free Importing

    Hello,
    I'd like to create a class which inherits from another class from some other package. So I use "import" keyword to involve the class to build my new class on. However, I hope my new class can be in its own package which is different with one the base class is in. To make it clear, please see the example below:
    There are two folders, with name c08 and c09 respectively, in C:\Java which I created for this case. I set the environment variable as C:\Java. There is no problem. Then I saved file "Inter.java" in C:\Java\c08. It's source code is as below:
    package c08;
    public interface Inter {
         void play ();
         void action ();
    And another "Test.java" is saved in C:\Java\c09. Source code as below:
    package c09;
    import c08.*;
    public class Test {
    protected class PC implements Inter {
              public void play () {
                   System.out.println("Play()");
              public void action () {
                   System.out.println("Action()");
    It was successfully compiled for "Inter.java". But when comes to "Test.java", it failed with error message of something like "Cannot find the interface Inter". I tried some other ways and I didn't get any results.
    I hope to create a class using classes from some other packages while keeping the new one in a different package. How can this be done? (I am currently doing this in J2SE 1.4.01 under Windows XP Home Edition)
    Thank you!
    Best Regards
    Felix

    I copied and pasted your code as well as made c08 and c09 directories. I had no errors compiling. I am using NT, but it appears that your problem is Classpath related. You can try to CD to the C:\Java directory and compile using "javac c09\Test.java" That's the command I used.

  • Cannot compile class with a package

    Hello,
    I am trying to implement the package example from the SUN Tutorial. It can be found on the page: http://java.sun.com/docs/books/tutorial/java/interpack/QandE/packages-questions.html
    I think I am doing like described but it doesn�t work. The files are stored like following on my machine:
    D:\Test\Java\mygame\Shared\Utilities.java               (this file can be compiled)
    D:\Test\Java\mygame\Server\Server.java                    (can�t be compiled)
    D:\Test\Java\mygame\Client\Client.java                    (can�t be compiled)
    I have no CLASSPATH set (but I tried), Java is installed in C:\Java\j2sdk, I also tried D:\mygame\Shared\Utilities|Server|Client.java
    The error message is:
    cannot resolve symbol
    Are there any further prerequisites?
    Thank you

    This is a minimal explanation of packages.
    Assume that your programs are part of a package named myapp, which is specified by this first line in each source file: package myapp;
    Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
    Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
    Then a statement to compile your source file named aProgram.java is:
    C:\java\work\>javac myapp\aProgram.java
    And a statement to run the program is:
    java myapp.aProgram
    (This can be issued from any directory, as Java will search for the program, starting the search from the classpath directories.)
    Explanation:
    Compiling
    A class is in a package if there is a package statement at the top of the class.
    The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
    So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
    Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
    Running
    Compiling creates a file, aProgram.class in the myapp directory.
    (The following is where people tend to get lost.)
    The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
    To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
    To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)
    Here is a reference: http://java.sun.com/j2se/1.4.1/docs/tooldocs/findingclasses.html

  • Cannot find class in same package but in different file

    I have following two source files. Both the file has same package statement as below
    package java.buron.doeacc ;
    But whenever i try to compile File: shoepolish.java ( mainfram.java compiled succesfully before)
    following error message appear
    ..\..\buron\doeacc\shoepolish.java:12: cannot resolve symbol
    symbol : class MainFrame
    location: class java.buron.doeacc.shoepolish
              MainFrame mainFrame = new MainFrame();
    ^
    ..\..\buron\doeacc\shoepolish.java:12: cannot resolve symbol
    symbol : class MainFrame
    location: class java.buron.doeacc.shoepolish
              MainFrame mainFrame = new MainFrame();
    ^
    Please tell me What is the problem and how it can be solved.
    why cannot find the class that are in same package.
    I have JDK 1.3
    FOLLOWING ARE THE TWO FILES
    File: mainframe.java/////////////////////////////////////////////////////////////////////
    package java.buron.doeacc ;
    import javax.swing.* ;
    import java.awt.*;
    import java.awt.event.* ;
    class MainFrame extends JFrame
         private final String APP_NAME = "Shoe Polish";
         // constructor
         public MainFrame()
              super("Shoe Polish");
              setSize(500, 500);
              setVisible(true);
    File : shoepolish.java
    package java.buron.doeacc ;
    import java.io.* ;
    import java.buron.doeacc.* ;
    class shoepolish
         public static void main(String args[])
              MainFrame mainFrame = new MainFrame();

    The javac compiler uses the Classpath to find classes. If your directory structure is c:\myjava\buron\doeacc (for example) then you need to have c:\myjava in the Classpath when you compile. For example javac -classpath c:\myjava MainFrame.java

  • Create class in java. package

    Not good practice, I know, but is it it possible to do. It seems as the VM (1.3) does not bother about if I set up the RuntimePermissions to be able to access and define Class In Package java.net. I still get a prohibited package name exception.
    Anyone that knows something about it?
    I tried to create a class in java.net with these permissions defined in pollicy file
    permission java.lang.RuntimePermission "defineClassInPackage.java.net";
    permission java.lang.RuntimePermission "accessClassInPackage.java.net";
    //Rickard

    Try loading your classes through the bootstrap java command option (see below).
    Let us know how you fare,
    Manuel Amago.
    Boostrap command line options
    -Xbootclasspath:<directories and zip/jar files separated by ;>
    set search path for bootstrap classes and resources
    -Xbootclasspath/a:<directories and zip/jar files separated by ;>
    append to end of bootstrap class path
    -Xbootclasspath/p:<directories and zip/jar files separated by ;>
    I would use the option in the middle.

  • Unknown ALERT while loading class

    When I try to load a class in the kvm I get the following error:
    "ALERT: Cannot create class in system package"
    I've done a Google search, and a search on this site, with no luck. Am I the first person to get this error?
    I have a few ideas about what might be causing it. If anyone could confirm or deny them, I'd appreciate it:
    #1. This is prime culprit-> Dynamic class loading via Class.forName. Does the stripped down JVM support all the functionality I need for this?
    #2. Am I not specifying the classpath correctly? I tried adding J2ME's src directory and J2SE's rt.jar to the classpath to no avail.
    #3. Did I preverify incorrectly? I didn't get any errors, but without verbose output, I can't be sure exactly what happened anyway.
    Any help would be greatly appreciated.
    --Dan Clark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Let me explain the situation in more detail
    I have a MIDlet class, that is in my own package JMarket:
    package JMarket;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public void startApp() {
    mm = new Form("Welcome to JVS!");
    //make connection to Bluetooth Server
    connect = new JvsConnect(); if I uncomment this line error message disappears
    Let me now show you my JvsConnect class:
    package JMarket;
    import javax.bluetooth.*;
    import javax.microedition.io.*;
    import com.rococosoft.impronto.configuration.*;
    import com.rococosoft.impronto.util.*;
    public class JvsConnect {
    These two lines cause the problem.When I uncomment them error is gone
    private static LocalDevice device = null;
    private final static UUID uuid = new UUID(0x7C3434CC);
    public JvsConnect() {
    System.out.println("Starting Bluetooth Connection...");
    In my project properties(in JBuilder), as required library I have Impronto's APIs (without them I cannot say " import com.rococosoft.impronto.util.*; " - which is needed for bluetooth connection "LocalDevice" and others..)
    So as you can see when I only uncomment two lines from JvsConnect class error message is gone and MIDlet can do everything ok....Otherwise it always says ALERT: Cannot create class in system package
    What is wrong???

  • Inheritance class in the system package

    Hi all, when I use a tool such as Java Decompiler to explore the classses in the system package(javax.microedition.lcdui provided with Nokia SDK_v1_1), I see that there are many non-documented methods in the class, e.g, getkeyPressedEvent() in the class TextBox. So I try to override these methods in the sub-classes that are declared in the same package. Compiling by J2SDK 1.4.1_03 is OK but running on the Nokia simulator 6310i, I take the error msg: "Cannot create class in the system package".
    What is wrong here? Does it means we can not modify the code of the super class in the system package?
    Please help me

    What is wrong here? Does it means we can not modify
    the code of the super class in the system package?Exactly.
    It would violate the license.

  • Cannot Create Data Repository with VM Server (3.1.1) Cluster

    Dear All,
    I have 3 Servers (one for VM Manager, two for VM Servers) and 1 Storage (Sun Storage 6180 (Fiber Chanel) and map volume as Default Storage Domain ).
    I try to create my 2 VM Servers as Cluster on VM Manager but it has problem as below:
    Case1. I can create a Server Pool with cluster by select Clustered Server Pool by select physical disk, add 2 servers then create data repository but it got problem: in page Create a Data Repository: Select Physical Disk is shown blank not see a physical disk.
    Case 2. when I create server pool by uncheck Clustered Server Pool box (None Cluster) and add 2 vm servers then create data repository, the physical disk is shown but got error message:
    "OVMRU_002030E Cannot create OCFS2 file system with local file server: Local FS vmserver1. Its server is not in a cluster
    Wed Dec 26 01:27:12 ICT 2012"
    Please kindly give advice for this.
    Thanks and regards,
    Vandy

    1. So you're trying to create a server pool and a storage repository on a single LUN that is direct attached? Don't your software on the 6180 allow you present multiple LUNS from disk group? Think about it. You create a clustered server pool on a single LUN and then try to use that same LUN for repository.....
    2. How are both hosts attached? Are there multiple HBA cards in your 6180? Is so, how many? If you have redundant cards you should be using multipathing for redundancy.

  • Class name and package name clashing

    When i have a class and a package with the same name, I cannot access classes in the package. For example I have 3 classes and 1 package as below
    - Test.java
    - PackageName.java
    + PackageName // this is a directory
    - MyClass.java
    Below are the codes of .java files
    Test.java
    =======
    public class Test { PackageName.MyClass a = new PackageName.MyClass ();}
    PackageName.java
    ===============
    public class PackageName{ }
    MyClass.java
    ==========
    package PackageName; public class MyClass { }
    I can compile PackageName.java and MyClass.java but not Test.java. It says
    cannot resolve symbol
    symbol : class MyClass
    location: class PackageName
    PackageName.MyClass a = new PackageName.MyClass ();
    But if I remove the PackageName.java, I can compile Test.java perfectly. I think when I use PackageName.MyClass, java thinks that I try to access an inner class MyClass of PackageName class, and that does not exists. Is there any way to solve this ambiguation, other than making the package name and class name different? Thank you very much.

    This works fine: just add an import to Test.java.
    import PackageName.MyClass;
    public class Test
        public static void main(String [] args)
            MyClass a = new MyClass();
    public class PackageName {}
    package PackageName;
    public class MyClass {}It's a pretty wacky, useless example, but it works.
    Plus I thought inner classes would have a dollar sign in their .class file names. When I compile this:
    public class OuterClass
        public static void main(String [] args)
            OuterClass outer = new OuterClass();
            System.out.println(outer);
        public String toString() { return "I'm an OuterClass"; }
        class InnerClass
            public String toString() { return "I'm an InnerClass"; }
    }I see two .class files: OuterClass.class and OuterClass$InnerClass.class
    Why make up examples like this? It's hard enough writing code, and it's easy to disambiguate for the compiler.

Maybe you are looking for