Can I increase heap memory without specify any class or jar file??

Hi,
I tried to increase my heap memory in this way :
java -Xms256m -Xmx256m
but I got an error ... it's seem that I must specify a class java or a .jar file ...
This is the error :
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
can I increase heap memory without specify any class or jar file??
thx

chiara wrote:
Hi,
I tried to increase my heap memory in this way :
java -Xms256m -Xmx256m
but I got an error ... it's seem that I must specify a class java or a .jar file ...
This is the error :
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
can I increase heap memory without specify any class or jar file??The job of java.exe is to execute java bytecode.
What is it supposed to do with your request to use 256m of memory for heap
when you are not giving it a class or a jar to run?

Similar Messages

  • How can I use this account without specify credit cards, only for free applications ?

    How can I use this account without specify credit cards, only for free applications ?

    Click here and follow the instructions.
    (94222)

  • Can off JVM heap Memory used in the Near-Cache front-tier

    I had tried to config a near-Cache used nio-manager(off JVM heap) in the Front-tier.
    <near-scheme>
          <scheme-name>CohApp-near</scheme-name>
          <front-scheme>
            <external-scheme>
            </external-scheme>
          </front-scheme>
          <back-scheme>
            <distributed-scheme>
              <scheme-ref>CohApp-distributed</scheme-ref>
            </distributed-scheme>
          </back-scheme>
          <invalidation-strategy>auto</invalidation-strategy>
          <autostart>true</autostart>
        </near-scheme>
    when start 'com.tangosol.net.DefaultCacheServer' for this config, error as:
    Oracle Coherence Version 3.7.1.0 Build 27797
    Enterprise Edition: Development mode
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
    2014-03-30 16:34:17.518/1.201 Oracle Coherence EE 3.7.1.0 <Error> (thread=main,
    member=n/a): Error org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invali
    d content was found starting with element 'external-scheme'. One of '{"http://xm
    lns.oracle.com/coherence/coherence-cache-config":local-scheme, "http://xmlns.ora
    cle.com/coherence/coherence-cache-config":class-scheme}' is expected. - line 92
    Exception in thread "main" (Wrapped: Failed to load the factory) (Wrapped: Missi
    ng or inaccessible constructor "com.tangosol.net.DefaultConfigurableCacheFactory
    (String)"
    <configurable-cache-factory-config>
      <class-name>com.tangosol.net.DefaultConfigurableCacheFactory</class-name>
      <init-params>
        <init-param>
          <param-type>java.lang.String</param-type>
          <param-value>coherence-cache-config.xml</param-value>
        </init-param>
      </init-params>
    </configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio
    n
            at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
            at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCa
    cheFactoryBuilder.java:311)
            at com.tangosol.net.DefaultCacheFactoryBuilder.getSingletonFactory(Defau
    ltCacheFactoryBuilder.java:48)
            at com.tangosol.net.DefaultCacheFactoryBuilder.getFactory(DefaultCacheFa
    ctoryBuilder.java:121)
            at com.tangosol.net.ScopedCacheFactoryBuilder.getConfigurableCacheFactor
    y(ScopedCacheFactoryBuilder.java:112)
            at com.tangosol.net.CacheFactory.getConfigurableCacheFactory(CacheFactor
    y.java:126)
            at com.tangosol.net.DefaultCacheServer.getDefaultConfigurableCacheFactor
    y(DefaultCacheServer.java:364)
            at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
    Caused by: (Wrapped: Missing or inaccessible constructor "com.tangosol.net.Defau
    ltConfigurableCacheFactory(String)"
    <configurable-cache-factory-config>
      <class-name>com.tangosol.net.DefaultConfigurableCacheFactory</class-name>
      <init-params>
        <init-param>
          <param-type>java.lang.String</param-type>
          <param-value>coherence-cache-config.xml</param-value>
        </init-param>
      </init-params>
    </configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio
    n
            at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
            at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2652)
            at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2536)
            at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCa
    cheFactoryBuilder.java:273)
            ... 6 more
    Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
            at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:694)
            at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2611)
            ... 8 more
    Caused by: (Wrapped: Failed to load cache configuration: coherence-cache-config.
    xml) (Wrapped) java.io.IOException: Exception occurred during schema validation:
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'externa
    l-scheme'. One of '{"http://xmlns.oracle.com/coherence/coherence-cache-config":l
    ocal-scheme, "http://xmlns.oracle.com/coherence/coherence-cache-config":class-sc
    heme}' is expected.
            at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
            at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:34
    1)
            at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:283)
            at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultCo
    nfigurableCacheFactory.java:439)
            at com.tangosol.net.DefaultConfigurableCacheFactory.loadConfig(DefaultCo
    nfigurableCacheFactory.java:425)
            at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfig
    urableCacheFactory.java:155)
            ... 14 more
    Caused by: (Wrapped) java.io.IOException: Exception occurred during schema valid
    ation:
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'externa
    l-scheme'. One of '{"http://xmlns.oracle.com/coherence/coherence-cache-config":l
    ocal-scheme, "http://xmlns.oracle.com/coherence/coherence-cache-config":class-sc
    heme}' is expected.
            at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:122)
            at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:157)
            at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:32
    2)
            ... 18 more
    Caused by: java.io.IOException: Exception occurred during schema validation:
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'externa
    l-scheme'. One of '{"http://xmlns.oracle.com/coherence/coherence-cache-config":l
    ocal-scheme, "http://xmlns.oracle.com/coherence/coherence-cache-config":class-sc
    heme}' is expected.
            at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:212)
            at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:93)
            at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:162)
            at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:115)
            at com.tangosol.run.xml.XmlHelper.loadXml(XmlHelper.java:118)
            ... 20 more
    Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid conten
    t was found starting with element 'external-scheme'. One of '{"http://xmlns.orac
    le.com/coherence/coherence-cache-config":local-scheme, "http://xmlns.oracle.com/
    coherence/coherence-cache-config":class-scheme}' is expected.
            at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
    ParseException(ErrorHandlerWrapper.java:195)
            at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err
    orHandlerWrapper.java:131)
            at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
    XMLErrorReporter.java:384)
            at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
    XMLErrorReporter.java:318)
            at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErro
    rReporter.reportError(XMLSchemaValidator.java:417)
            at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportS
    chemaError(XMLSchemaValidator.java:3182)
            at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleS
    tartElement(XMLSchemaValidator.java:1806)
            at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startEl
    ement(XMLSchemaValidator.java:705)
            at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
    StartElement(XMLNSDocumentScannerImpl.java:400)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
    MLDocumentScannerImpl.java:648)
            at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
    (XMLNSDocumentScannerImpl.java:140)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:808)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:737)
            at com.sun.org.apache.xerces.internal.jaxp.validation.StreamValidatorHel
    per.validate(StreamValidatorHelper.java:144)
            at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.vali
    date(ValidatorImpl.java:111)
            at javax.xml.validation.Validator.validate(Validator.java:127)
            at com.tangosol.run.xml.SaxParser.validateXsd(SaxParser.java:236)
            at com.tangosol.run.xml.SimpleParser.parseXml(SimpleParser.java:206)
    So I think that if can off JVM heap Memory used in the Near-Cache front-tier?
    Or can help how to config the  off JVM heap Memory used in the Near-Cache front-tier.
    Thanks.

    Only local-scheme and class-scheme can be used in the front-scheme of a near cache. 

  • How can i track my ipod without activating any special apps?

    how can i track my ipod without activating any special apps?

    You can't.  You have to already set up the FidfMyiPhone feature of MobileMe.

  • For some reason every time I try to open iPhoto, it opens it but immediately it frozen. I can no do anything or see any of my pictures. How can I fix it? without erasing any of my pictures.

    For some reason every time I try to open iPhoto, it opens it but immediately it frozen. I can no do anything or see any of my pictures. How can I fix it? without erasing any of my pictures.

    What version of iPhoto?
    A. iPhoto '11. Version 9.4.2 (710.42)
    What version of the Operating System?
    A.Mac OS X Version 10.7.5
    What was I doing when the problem arose?
    A. I was uploading some pictures from my camera to my Mac then I closed it. next time tried to open it and it went right to the way that the pictire before shows.
    Did it ever work properly?
    A. It had some details; like taking a lot of time to send a picture from iPhoto to an e-mail or not send it at all.
    What steps have I tried already to solve the issue?
    A. None, I havent wanted to do anything to fix it because I'm afraid I could somehow delete my pictures. I know the pictures still there; because, they are on my screen saver changing and changing.
    I also want to know if there is any other way for me to see my pictures other than trought iPhoto?

  • Anyone know of a good way to move finalcut pro X to an external HD without loosing any of the project files?

    Anyone know of a good way to move finalcut pro X to an external HD without loosing any of the project files?

    If you're looking for improved performance, you should move your events and projects to an external FW800 or faster drive.
    The FCP X application itself should reside in your Applications folder on your system drive.
    If you're talking about backing up to another drive, I use a cloning application (SuperDuper) to clone my working drive to my backup drive two or three times a day.
    If you want to install FCP X on another computer, simply download it again from the App Store (using the same Apple ID you used to purchase the app).
    Andy

  • HT4623 Is there any way I can increase my memory without deleting stuff?

    Is there any way I can increase the memory on my iPhone 4 without deleting stuff?  eg by purchasing extra memory?

    No, there isn't. The amount of storage on an iPhone is fixed and cannot be increased. Your only options are to either delete stuff or purchase an iPhone with larger capacity.
    Regards.

  • Increasing Heap Memory

    How do I do to increase the memory available to the JVM? I have an AVLTree class that I am trying to test how many nodes can hold, but even though I have tried on PCs ranging from 128MB to 2GB of RAM, the results is always the same: + - 2.3 million nodes. I have used -x option to increase heap size but that does not seem to work.

    Hi,
    I encounter the same problem with using 1G RAM & JRE 1.5 & running applet in IE.
    The IE memory usage always run on maximum 139000K. Even I tried "java -Xms64m -Xmx512m" & "java -Xms256m -Xmx768m", the memory usage still in 139000K, and Java console shows "Exception in thread 'AWT-EventQueue-2' java.lang.OutOfMemoryError: Java heap space". How can I solve it?
    Thanks.

  • I duplicated a picture and now iPhoto (11) is cloning that picture replacing all the other photos and only when I click directly on them I can see the real picture! How can I solve the problem without losing any saved picture? Shall I re-install? Thanx

    I duplicated a picture selecting CMD and D but, suddenly, iPhoto (latest version '11) started cloning that picture and replacing all the other photos with it.
    Only when I click directly on one photo I can open it and see the real picture it is.
    But the preview is always the duplicated one...
    I tryed to duplicate another picture just to see if it turned out ok but the only changement was the duplicated picture!
    I started repeating the second duplicated one instead of the previous one but my issue remained the same.
    So, how can you help me to solve this problem without losing any saved picture?
    Shall I re-install iPhoto completely?
    Thank you very very much in advance!!

    As Larry says, restoring the back up is the fastest and best solution. Otherwise:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • If i can't increase the memory on an iphone, how do i NOT upload my entire itunes library?

    hi,
    i'm new to this whole smartphone thing.  but i've run into this frustration and can't seem to find my way around it.
    every time i hook up my phone - iphone 4 - to my computer - macbook 10.7 - they try to sync, and now i don't like having them both on the same wifi because they 'update' behind my back.  i don't want 3 days worth of music on my phone.  i would rather have more room on the phone for other stuff - apps and whatnot.
    i've set every checkbox i can find to NOT sync, and to NOT update, but  they do it anyway.  the songs that haven't been copied in their entirety  have left a place-saver of sorts - a ghost that seems to interfere with  playback of songs in a modified album, or if i just try to play from  the library - which i do, sometimes.
    someone on another post said that since you can't upgrade the memory on an iphone, that they should just delete some music, but it doesn't seem to let me - it puts it there without my permission, and even now that i've deleted all the music from the phone, the library is still full of all these 'ghost' songs that i don't know how to be rid of.
    thanks,
    nate.

    Now, one at a time:
    On Mac:
         Do you have the latest iTunes 11.0.4? If not download it here http://www.apple.com/support/itunes/
         Switch on  iTunes menu > View > Show Sidebar
         Connect and select iPhone under DEVICES in iTunes Sidebar.
         Go through the tabs (top right pane) Summary, Info, Apps, etc.
         and select and de-select what you want on iPhone.
         When finished, click Apply button (bottom right) and then click Sync.

  • How can i run external application without specifying the full path?

    for example, ms word executable file is winword.exe, but in java i am using the following command:
    Runtime.getRuntime().exec("\"C:\\Program Files\\Microsoft Office\\Office10\\winword.exe\");
    the thing is, i dont know where ms word is installed on every machine, so rather than making an assumption, do you know how i can run ms word without specifying the full path?
    thanks

    1) You could ask the user to tell you where it's at (and remember for next time)
    2) You could do a file search for it (and remember it for next time)

  • Can I increase db_files parameter without restarting database

    I get following error message : ORA-00059: maximum number of DB_FILES exceeded
    Can I increase the db_files parameter dynamically without restarting the database.
    thanks!

    You cannot change this parameter dynamically. You must restart your oracle instance in order this parameter takes effect.
    refer:-
    ORA-00059: maximum number of DB_FILES exceeded

  • Can I change the theme without remove any information

    I want to change the theme without remove any iformation ?
    how can I change it ?

    In the theme chooser, click on the theme you want to change to, be aware the new theme could reposition or change the content, just try it and see..

  • In a JSP how can access an XML where the XML is present in JAR file in the

    All,
    The Requirement is as below,
    I have a JSP LaunchMe.jsp, and I have a jar utils.jar. both are present in my deployable war file.
    And I have an XML Details.XML present in the utils.jar file.
    Here I want to access Details.xml in the LaunchMe.jsp.
    Can any one please let me know how can I do this.
    Thanks,
    Subramanyam V

    Yes. You have to understand that to read a FILE (one that is seen as a file by your OS), you probably use a FileInputStream, which is a special case of InputStream. When the 'file' is not a FILE anymore, but an entry in a jar (the OS does not see it, only utilities like WinZip or jar see it), you cannot use a FileInputStream, but some other InputStream. Which one? The one returned by getResourceAsStream(), whatever this is (you don't really care). And all the rest will nicely fall into place.

  • Can we send java classes instead jar files through web start?

    HI,
    As we all know through web start we can send jar files from server to client system and run application. is it possible to send only java class file directly without making it jar? if yes then how it is?

    no - not possible in jnlp specification.

Maybe you are looking for

  • Error while trying to configure Resource Object in Design Console

    Hi, I am getting the following error while trying to update any value in Resource Object(checking/unchecking any checkbox) Description: Allow Multiple option cannot be changed from true to false. : Allow Multiple option cannot be changed from true to

  • Programs crashing after security update 2014-002

    I installed the latest security update for Mavericks today and since then I've had two programs crash repeatedly. In iTunes, when I click on "Add to Library," iTunes shuts down. In Photoshop Elements 12, when I try to save a photo, the program shuts

  • How to unblock all incoming mail in Safari

    Hello fellow Mac friends; I'm looking for a way to UNBLOCK ALL incoming mail  in Safari... I did blocked a few by mistake and I wish to Unblock all... Any way to disable or/edit the complete list-? I have no parentally blocked sites in the "Parents C

  • Loading a clip in QuickTime Player using a href?

    I know you can do this using the embed tag and target="QuickTimePlayer" but is there a way using HTML or JavaScript to make this simply a href as I want it to just say "Click here to load clip in standalone player". Hope someone can help? Cheers Bruc

  • Mac Mini + External Superdrive DVD Player Crashing

    Hi, I have a brand new Mac Mini on OSX Mountain Lion and a brand new external superdrive. If a DVD movie is inserted in to the superdrive, DVD Player attempts to load, and then promptly crashes. Anyone else having this problem?