Invalid initial heap size Problem with sdk1.4.2_03

Hi,
ich habe a troubling error with the java version 1.4.2_03.
I use an Ant Task to start a Weblogic Server (J2EE Server). For this, I use the following Ant code :
-----ANT CODE------------------------------------------------------------------------------------------------------------------------
<java classname="weblogic.Server" fork="true" failonerror="true" dir="${weblogic.domain.dir}">
<sysproperty key="bea.home" value="${bea.home.dir}"/>
<sysproperty key="weblogic.Name" value="${weblogic.admin.server.name}"/>
<sysproperty key="weblogic.management.username" value="${weblogic.user.name}"/>
<sysproperty key="weblogic.management.password" value="${weblogic.user.password}"/>
<sysproperty key="weblogic.ProductionModeEnabled" value="false"/>
<sysproperty key="java.security.policy" value="${weblogic.home.dir}\server\lib\weblogic.policy"/>
<sysproperty key="weblogic.security.SSL.trustedCAKeyStore" value="${weblogic.home.dir}\server\lib\cacerts"/>
     <jvmarg value="-Xms32m -Xmx200m"/>
<classpath>
<pathelement path="${windows.classpath.wls}"/>
</classpath>
</java>
-----/ANT CODE------------------------------------------------------------------------------------------------------------------------
This Task perfectly works with the sdk java version 1.4.1_05, but I have the following message with the sdk java version 1.4.2_03 :
-----ERROR MESSAGE---------------------------------------------------
Invalid initial heap size: -Xms32m -Xmx200m
Could not create the Java virtual machine.
-----/ERROR MESSAGE---------------------------------------------------
The following parameter is anymore correct : <jvmarg value="-Xms32m -Xmx200m"/>
I have tried with a lot of possibilty, 64-200, 128-200, 128-128, 256-256, 512-512, nothing works.
I have tried without this parameter, this works fine.
I have tried with the weblogic server without the Ant Task, and this works fine too.
I think this is a bug in the JVM 1.4.2_03.
What do you think about this problem ??? Do you have some solution ???
I have also tried with another version of ant, I have the same problem. This works with JVM 1.4.1_05 and not with JVM 1.4.2_03.
If you have an idea, please, help.
Thanks

If you can start a 1.4.2 JVM with all these parameters independently (i.e. not from Ant) and it works, but from Ant it doesn't work, it's more likely that the problem is somehow related to interaction between Ant and the JVM, rather than the JVM itself. So I would suggest trying some Ant forum first - I think it would also work faster than if you try to submit this bug to Sun.

Similar Messages

  • Invalid initial heap size in JVM 1.4.2_04 on Solaris 9 machine

    Hi,
    While running this command.
    # java -Xms8096m -Xmx8096m newserver.sh
    I am getting the following error:
    Invalid initial heap size: -Xms5000m
    Could not create the Java virtual machine
    I tried with - server option also. But same error. Can any one tell me what is the limit of heap size allowed in Solaris 9? Plz tell me work around for this.
    Thanks,
    Vasanth.

    cvringer wrote:
    I really hate this responses. If you bother others with your problems, at least take the trouble of informing others about the solution. You made this whole post worthless.Reply #2 answers the question. You need a 64-bit VM.
    I'm locking this zombie thread.
    Kaj

  • Invalid initial heap size error when starting weblogic server 11g R1

    I installed JDeveloper Studio 11.1.1.2.0 . When iItried to start weblogic server 11g R1, I had this message :
    starting weblogic with Java version:
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1.5-3\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Ddomain.home=C:\DOCUME~1\Admin\APPLIC~1\JDEVEL~1\SYSTEM~1.36\DEFAUL~1 -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=C:\DOCUME~1\Admin\APPLIC~1\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\FMWCON~1 -Doracle.server.config.dir=C:\DOCUME~1\Admin\APPLIC~1\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.security.jps.config=C:\DOCUME~1\Admin\APPLIC~1\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=C:\DOCUME~1\Admin\APPLIC~1\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\DOCUME~1\Admin\APPLIC~1\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\FMWCON~1\arisidprovider -Dweblogic.alternateTypesDirectory=\modules\oracle.ossoiap_11.1.1,\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\DOCUME~1\Admin\APPLIC~1\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\oracle\store\gmds "-Xms512m -Xmx512m" -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server
    Could not create the Java virtual machine.
    Invalid initial heap size: -Xms512m -Xmx512m
    Process exited.
    Please, how can I fixe this error ?

    For 2 GB machine set the parameters as below:
    /ide/bin/ide.conf
    AddVMOption -Xmx1232M
    AddVMOption -Xms64M
    /jdev/bin/jdef.conf
    AddVMOption -XX:MaxPermSize=128M
    For 3 GB machine set the parameters as below:
    /ide/bin/ide.conf
    AddVMOption -Xmx1488M
    AddVMOption -Xms64M
    /jdev/bin/jdef.conf
    AddVMOption -XX:MaxPermSize=128M

  • The initial heap size must be less than or equal to the maximum heap size.

    All,
    Please help!!
    I have tested my Application Client Project in WSAD on my pc and it works fine.
    I have 1gb RAM on my pc. When I deploy the same app on another xp pc(same as mine but 512mb RAM) I get a heap size error. Here is the exact error:
    Incompatible initial and maximum heap sizes specified:
    initial size: 268435456 bytes, maximum heap size: 267380736 bytes
    The initial heap size must be less than or equal to the maximum heap size.
    The default initial and maximum heap sizes are 4194304 and 267380736 bytes.
    Usage: java [-options] class [args...]
    (to execute a class)
    or java -jar [-options] jarfile [args...]
    (to execute a jar file)
    where options include:
    -cp -classpath <directories and zip/jar files separated by ;>
    set search path for application classes and resources
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version
    -showversion print product version and continue
    -? -help print this help message
    -X print help on non-standard options
    Could not create the Java virtual machine.
    Press any key to continue . . .
    Here is the batch file that runs my app:
    @echo off
    SET appClientEar=C:\corp\apps\mts\jars\MTSClientEAR.ear
    set JVM_ARGS=-Xms256M -Xmx256M
    set CLIENT_PROPS=C:\corp\apps\mts\jars\medicalclient.properties
    set APP_ARGS=
    call C:\bnsf\IBM\WebSphere\AppClient\bin\launchClientBNSF.bat "%JVM_ARGS%" %appClientEar% "-CCpropfile=%CLIENT_PROPS%" %APP_ARGS%
    @pause
    I have changed the value of Xms and Xmx of JVM_ARGS to different size but I sitll get error. Anyone knows what the problem is. Thanks..

    Don't know why, but the "maximum heap size: 267380736 bytes" value is just slightly less than 256*1024*1024, wheras the reported initial size is equal to that.
    Try setting the initial value to 255MB.

  • Too low initial heap size

    Hi,
    Any idea why following line is giving too low initial heap size error in server startup.
    $JAVA_HOME/bin/java $JAVA_VM -XX:NewSize=256m -XX:MaxNewSize=256m -XX:SurvivorRatio=6 -Xms2048m -Xmx2048m -Xrs -verbose:gc
    This error is coming when I am adding -XX:NewSize=256m -XX:MaxNewSize=256m parameters.
    Thanks in advance.
    Regards,
    Chintan.

    Just a thought: maybe you should use both,
    initial-heap-size="128m" max-heap-size="256m"
    I think the Client JVM defaults to max 64m, so setting the initial heap to 128m would set initial bigger than max, which leads to an error.
    hope that helps...
    Patric

  • JPDA Initial Heap Size

    Please tell me how to change the default initial and max heap size for JPDA / debugee programs.
    The typical non-standard options do not seem to work -
    -Xms128m -Xmx256m
    I am also using the following options -
    -agentlib:jdwp=transport=dt_socket,server=y,address=8000
    with JDK 5 (build 1.5.0_06-b05) and NB 5 (200601251500)
    Thanks,
    Jeff

    You may want to post this question on NetBeans forums (http://www.netbeans.org/community/lists/top.html) especially [email protected] (http://www.netbeans.org/servlets/SummarizeList?listName=nbusers), where the debugger experts are...
    btw, have you tried '-J-Dnetbeans.debugger.jpda.transport=dt_shmem' startup option?
    According to http://www.netbeans.org/kb/41/using-netbeans/configuring.html#performance_switches:
    Force the IDE to use the shared memory connection when starting a debugging session with the Debug >Start command. This parameter has no effect when you attach the debugger to an already running process.
    This may use the -X parameters passed to ide itself...

  • Problem with SDK1.4 beta 2

    Hi all!
    I have installed the new SDK and try to run my SWT application. It was running with SDK1.4.1 without any problems. But now I get the following exception:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77E0DBC7
    Function=EnableScrollBar+0x10D
    Library=C:\WINNT\system32\USER32.dll
    Elapsed Time = 20
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2-beta-b19 mixed mode)
    # An error report file has been saved as hs_err_pid2244.log.
    # Please refer to the file for further information.
    What happens?
    Thanks for your help.
    Regards
    Maika

    Hi,
    I want to run my application and when I want to open a dialog with a textfield in it I get this exception. Because the main dialog of my application started, but the modal dialogs with textfields in it, didn't start.
    The original error message is the following:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77E0DBC7
    Function=EnableScrollBar+0x10D
    Library=C:\WINNT\system32\USER32.dll
    Current Java thread:
         at org.eclipse.swt.internal.win32.OS.DrawTextW(Native Method)
         at org.eclipse.swt.internal.win32.OS.DrawText(OS.java:1244)
         at org.eclipse.swt.widgets.Text.computeSize(Text.java:269)
         at org.eclipse.swt.layout.GridLayout.calculateGridDimensions(GridLayout.java:244)
         at org.eclipse.swt.layout.GridLayout.computeLayoutSize(GridLayout.java:326)
         at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:373)
         at org.eclipse.swt.widgets.Group.computeSize(Group.java:129)
         at org.eclipse.swt.layout.GridLayout.calculateGridDimensions(GridLayout.java:244)
         at org.eclipse.swt.layout.GridLayout.computeLayoutSize(GridLayout.java:326)
         at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:373)
         at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:505)
         at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:701)
         at org.eclipse.swt.widgets.Decorations.WM_SIZE(Decorations.java:1416)
         at org.eclipse.swt.widgets.Control.windowProc(Control.java:2742)
         at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1340)
         at org.eclipse.swt.widgets.Display.windowProc(Display.java:1992)
         at org.eclipse.swt.internal.win32.OS.ShowWindow(Native Method)
         at org.eclipse.swt.widgets.Decorations.setVisible(Decorations.java:1245)
         at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1012)
         at org.eclipse.swt.widgets.Shell.open(Shell.java:676)
         at com.vodafone.basis.swt.VIS_AbstractModalFrame.execute(VIS_AbstractModalFrame.java:308)
         at com.vodafone.evi.frame.EVI_FrameDebugTariff.doModalFrame(EVI_FrameDebugTariff.java:983)
         at com.vodafone.basis.swt.VIS_AbstractFrame.execute(VIS_AbstractFrame.java:797)
         at com.vodafone.evi.action.EVI_FrameMainAction.startDebugFrame(EVI_FrameMainAction.java:129)
         at com.vodafone.evi.frame.EVI_FrameMain$18.widgetSelected(EVI_FrameMain.java:428)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:87)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291)
         at com.vodafone.basis.swt.VIS_AbstractFrame.execute(VIS_AbstractFrame.java:803)
         at com.vodafone.evi.frame.EVI_FrameMain.main(EVI_FrameMain.java:1027)
    Dynamic libraries:
    0x00400000 - 0x00407000      C:\apps\j2sdk1.4.2_beta\jre\bin\javaw.exe
    0x77880000 - 0x77900000      C:\WINNT\System32\ntdll.dll
    0x77DA0000 - 0x77DFB000      C:\WINNT\system32\ADVAPI32.dll
    0x77E70000 - 0x77F2E000      C:\WINNT\system32\KERNEL32.dll
    0x77D30000 - 0x77D9D000      C:\WINNT\system32\RPCRT4.dll
    0x77E00000 - 0x77E64000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7C000      C:\WINNT\system32\GDI32.DLL
    0x78000000 - 0x78046000      C:\WINNT\system32\MSVCRT.dll
    0x10000000 - 0x10019000      C:\WINNT\System32\NVDESK32.DLL
    0x08000000 - 0x08136000      C:\apps\j2sdk1.4.2_beta\jre\bin\client\jvm.dll
    0x77540000 - 0x77571000      C:\WINNT\System32\WINMM.dll
    0x007D0000 - 0x007D7000      C:\apps\j2sdk1.4.2_beta\jre\bin\hpi.dll
    0x007F0000 - 0x007FE000      C:\apps\j2sdk1.4.2_beta\jre\bin\verify.dll
    0x00800000 - 0x00818000      C:\apps\j2sdk1.4.2_beta\jre\bin\java.dll
    0x00820000 - 0x0082D000      C:\apps\j2sdk1.4.2_beta\jre\bin\zip.dll
    0x184C0000 - 0x185CA000      C:\apps\j2sdk1.4.2_beta\jre\bin\awt.dll
    0x777F0000 - 0x7780D000      C:\WINNT\System32\WINSPOOL.DRV
    0x75DF0000 - 0x75E0A000      C:\WINNT\System32\IMM32.dll
    0x77A40000 - 0x77B2A000      C:\WINNT\system32\ole32.dll
    0x185D0000 - 0x18620000      C:\apps\j2sdk1.4.2_beta\jre\bin\fontmanager.dll
    0x51000000 - 0x5104A000      C:\WINNT\System32\ddraw.dll
    0x72810000 - 0x72816000      C:\WINNT\System32\DCIMAN32.dll
    0x5C000000 - 0x5C0C5000      C:\WINNT\System32\D3DIM700.DLL
    0x6E330000 - 0x6E336000      C:\WINNT\System32\INDICDLL.dll
    0x19B70000 - 0x19B7F000      C:\apps\j2sdk1.4.2_beta\jre\bin\net.dll
    0x74FA0000 - 0x74FB3000      C:\WINNT\System32\WS2_32.dll
    0x74F90000 - 0x74F98000      C:\WINNT\System32\WS2HELP.DLL
    0x77830000 - 0x7783C000      C:\WINNT\System32\rnr20.dll
    0x77970000 - 0x77994000      C:\WINNT\System32\DNSAPI.DLL
    0x74FC0000 - 0x74FC9000      C:\WINNT\System32\WSOCK32.dll
    0x77310000 - 0x77323000      C:\WINNT\System32\iphlpapi.dll
    0x774F0000 - 0x774F5000      C:\WINNT\System32\ICMP.DLL
    0x772F0000 - 0x77307000      C:\WINNT\System32\MPRAPI.DLL
    0x750C0000 - 0x750D0000      C:\WINNT\System32\SAMLIB.DLL
    0x750E0000 - 0x7512F000      C:\WINNT\System32\NETAPI32.DLL
    0x77BD0000 - 0x77BDF000      C:\WINNT\System32\Secur32.dll
    0x75130000 - 0x75136000      C:\WINNT\System32\NETRAP.dll
    0x77940000 - 0x77969000      C:\WINNT\system32\WLDAP32.dll
    0x779A0000 - 0x77A3B000      C:\WINNT\system32\OLEAUT32.DLL
    0x77380000 - 0x773AF000      C:\WINNT\System32\ACTIVEDS.DLL
    0x77350000 - 0x77372000      C:\WINNT\System32\ADSLDPC.DLL
    0x77820000 - 0x7782E000      C:\WINNT\System32\RTUTILS.DLL
    0x78310000 - 0x783A0000      C:\WINNT\System32\SETUPAPI.DLL
    0x77C00000 - 0x77C5F000      C:\WINNT\System32\USERENV.DLL
    0x774B0000 - 0x774E2000      C:\WINNT\System32\RASAPI32.DLL
    0x77490000 - 0x774A1000      C:\WINNT\System32\rasman.dll
    0x77500000 - 0x77522000      C:\WINNT\System32\TAPI32.dll
    0x71780000 - 0x7180A000      C:\WINNT\system32\COMCTL32.DLL
    0x70BD0000 - 0x70C34000      C:\WINNT\system32\SHLWAPI.DLL
    0x77330000 - 0x77349000      C:\WINNT\System32\DHCPCSVC.DLL
    0x784A0000 - 0x78525000      C:\WINNT\System32\CLBCATQ.DLL
    0x777D0000 - 0x777D8000      C:\WINNT\System32\winrnr.dll
    0x66210000 - 0x66219000      C:\WINNT\system32\netware\NWWS2NDS.DLL
    0x50D50000 - 0x50D95000      C:\WINNT\System32\NETWIN32.DLL
    0x50D00000 - 0x50D15000      C:\WINNT\System32\CLNWIN32.DLL
    0x50DF0000 - 0x50E10000      C:\WINNT\System32\LOCWIN32.DLL
    0x50DB0000 - 0x50DD9000      C:\WINNT\System32\NCPWIN32.dll
    0x66220000 - 0x6622C000      C:\WINNT\system32\netware\NWWS2SLP.DLL
    0x1C000000 - 0x1C007000      C:\WINNT\System32\NWSRVLOC.dll
    0x777E0000 - 0x777E5000      C:\WINNT\System32\rasadhlp.dll
    0x74F40000 - 0x74F5F000      C:\WINNT\system32\msafd.dll
    0x74F80000 - 0x74F87000      C:\WINNT\System32\wshtcpip.dll
    0x1A080000 - 0x1A085000      C:\apps\j2sdk1.4.2_beta\jre\bin\rmi.dll
    0x1A210000 - 0x1A232000      C:\apps\j2sdk1.4.2_beta\jre\bin\dcpr.dll
    0x1A290000 - 0x1A2D5000      C:\WINNT\system32\swt-win32-2052.dll
    0x76B00000 - 0x76B3F000      C:\WINNT\system32\comdlg32.dll
    0x77580000 - 0x777C8000      C:\WINNT\system32\SHELL32.DLL
    0x77910000 - 0x77933000      C:\WINNT\system32\imagehlp.dll
    0x72970000 - 0x7299D000      C:\WINNT\system32\DBGHELP.dll
    0x68F30000 - 0x68F3B000      C:\WINNT\System32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 28K [0x10020000, 0x100c0000, 0x10500000)
    eden space 512K, 5% used [0x10020000, 0x10027058, 0x100a0000)
    from space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
    to space 64K, 0% used [0x100b0000, 0x100b0000, 0x100c0000)
    tenured generation total 1708K, used 1045K [0x10500000, 0x106ab000, 0x14020000)
    the space 1708K, 61% used [0x10500000, 0x106056f0, 0x10605800, 0x106ab000)
    compacting perm gen total 8448K, used 8193K [0x14020000, 0x14860000, 0x18020000)
    the space 8448K, 96% used [0x14020000, 0x14820428, 0x14820600, 0x14860000)
    Local Time = Mon Jun 23 15:08:04 2003
    Elapsed Time = 23
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2-beta-b19 mixed mode)
    Does this make sense to you?
    Thanks for your help.
    Maika

  • URGENT: Heap space problems with image resizing

    I'm creating a Swing program, with an InternalFrame-type interface. One of the frames contains a .gif file background and then primitive G2D objects are drawn on top of it.
    The background image loads and displays fine at its original size, but I've added code for when the window resizes, and resizing the image causes the VM to give me an OutOfMemory exception.

    I tried this without any problem (with a gif of 137 kb):
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ImageFrame extends JFrame {
        public ImageFrame() {
            initComponents();
            Toolkit T=this.getToolkit();
            im0=T.getImage("C:\\sophie.gif");
            MediaTracker mediaTracker = new MediaTracker(this);
            mediaTracker.addImage(im0, 1);
            try {
                mediaTracker.waitForID(1);
            } catch (InterruptedException ie) {
                System.err.println(ie);
            jInternalFrame1.add(new MyPanel());
        private void initComponents() {
            jDesktopPane1 = new JDesktopPane();
            jInternalFrame1 = new JInternalFrame();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            jInternalFrame1.setResizable(true);
            jInternalFrame1.setVisible(true);
            jInternalFrame1.addComponentListener(new ComponentAdapter() {
                public void componentResized(ComponentEvent evt) {
                    jInternalFrame1ComponentResized(evt);
            jInternalFrame1.setBounds(0, 0, width, height);
            jDesktopPane1.add(jInternalFrame1, JLayeredPane.DEFAULT_LAYER);
            getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-800)/2, (screenSize.height-500)/2, 800, 500);
        private void jInternalFrame1ComponentResized(ComponentEvent evt) {
            width=jInternalFrame1.getWidth();
            height=jInternalFrame1.getHeight();
        public static void main(String args[]) {
            new ImageFrame().setVisible(true);
        private int width=500,height=300;
        private Image im0;
        private JDesktopPane jDesktopPane1;
        private JInternalFrame jInternalFrame1;
        class MyPanel extends JPanel {
            public void paint(Graphics g1) {
                g1.drawImage(im0,0,0,width,height,this);
                g1.dispose();
    }

  • Image size problem with Retina Macbook Pro

    I exported raw images to Jpg and then resized as 1200 x 800 resolution images through "Easy batch Pro" app. When I uploaded them, they were extremely large. I've tried it several times and the result was always the same. Is it a problem with "Easy batch Pro" app, or something with Retina Display resolution? I also resized them as small size like 600x400, but the image was totally broke, and apparently had different look when I saw the original via aperture. What should I do?

    What's the problem exactly?  Call and complain.  It's up to them on how they want to handle it, but if it's something normal or minor, they'll just fix the issue under warranty and send you on your way.  That's how warranty works.  In instances where a user has had repetative failure of the same kind or others with the same system, a complete replacement was done, but those were issues that border on the "it's a lemon" idea.

  • Size problem with Email sent from SAP

    Hi everyone,
    All our layouts today were developed with sap script
    We started to send them by mail, using the standard way.
    in the process they are converted to PDF format from OTF, because of this activity the size of the mail that I am getting is 1 Mega where as the source is only 300K (approximately).
    We are already flagged the option of compressing.
    As we see now we don't have any option to make the email to be smaller.
    Is someone already encountered this problem? What option do I have? (Except of developing the layout again in Adobe)
    Thanks allot
    Udi
    SD consultant

    First thanks
    Sayali Paradkar , we used in the past this function module, but it was even worse.
    We started to use the standard process of sending mail.
    As we understand the program of converting OTF format to PDF cause the size problem.
    And its define to send PDF out of the SAP, also we are using SAP definitions to compress all files :nSE38 -> RSTXPDF3 -> option FLATE_COMPR_OFF = OFF
    But still the mails are very big,
    Thanks again
    Udi Marom

  • File size problems with a banner

    I'm working on a banner in Illustrator CS3. It is 2m x .88m (roughly 33.5inches by 79inches) at 300dpi.
    The banner is not complete and I can't save it as a pdf anymore for customer preview- it's too big. It also often reverts to overview and won't redisplay in preview.
    The file has a full size background based on a photographic collage made in photoshop. This was flattened and saved as a pdf to come into Illustrator. There are other photographic objects that have been cut out in photoshop and saved on a transparent background to be placed in Illustrator. All these files are linked not embedded. Some of these have a drop shadow effect. The AI is over 440meg!!
    I'll admit to being inexperienced with developing banners and posters this large. I'm sure I must be handling it all wrong. I know I can merge some layers but I'll lose my ability to move things around. I still need to add some photos over the top.
    I'd really appreciate some advice on handling a project this large. I'm sure it is possible, lots of people are having pop banners this size printed with photgraphic images.
    I'm working on 3.4gig pentium dual processor, 3gig RAM, running Windows XP pro.

    > He says it's probably better to build the whole thing in PS at around 150dpi
    Leonie,
    For future reference, it's a matter of common sense. Generally speaking, the larger the final output format, the lower the raster resolution. Think about it this way:
    Why are things printed big?
    Because they are viewed from a distance.
    Why is 150-300ppi the conventional-wisdom rule-of-thumb?
    Because 150 lpi halftone ruling is a very common halftone screen for process printing viewed at (at most) arm's length. 150ppi means that the square raster pixels are at least as small as the halftone dots, so their square shape won't be evident (in other words, you won't see "the jaggies.")
    Would a 150 lpi halftone screen be sufficient if the page was meant to be read by an ant? No. The ant is much closer. The ant would see a bunch of meaningless large circles. A much higher halftone ruling and therefore a much higher raster ppi would be required--but the page would be much smaller, too.
    So forget this nonsense about 300 ppi raster resolution being needed for everything in print. Consider the optical scaling factor of displays meant to be viewed from a distance. No one makes billboards using 300 ppi raster images printed at 150 lpi halftone rulings.
    JET

  • Invalid Redemption code after problems with serial number.

    I have been somehow kicked off with two chats today in dealing with this problem.  I have brand new Lightroom software that was given to me as a gift.  I inserted the disc and downloaded it to my computer, went to retrieve my serial number and that is when the problem started.  I entered my redemption code, got my serial number, clicked the "download" option, an error window popped up saying "the webpage couldn't be loaded at this time" and when I went back to get the serial number (hit back arrow), it was gone.  This has now resulted in an invalid redemption code.  Help!!  How can I use my software, obtain my serial number or obtain a new serial number?

    http://helpx.adobe.com/x-productkb/policy-pricing/serial-number-retrieval-process-faq.html

  • Swing layout/size problem with JFrame and JApplet.

    I have a class that extends a JFrame, the classes layout is BorderLayout. I then have a class that extend JApplet, this classes layout is GridBagLayout (this class has a JTabbedPane - which contains JPanels). The problem I'm having is no matter how big I make the size of the applet or frame (using setSize), the applet/frame stays the same size - no matter how large I make it.
    Can anyone please help?
    Thanks,
    dosteov

    Here is the basic code:
    Thanks in advance,
    dosteov
    public class EADAdm extends JApplet
    EADAdmFrame theFrame = new EADAdmFrame(this);
         public void init()
              // Take out this line if you don't use symantec.itools.net.RelativeURL or symantec.itools.awt.util.StatusScroller
    //          symantec.itools.lang.Context.setApplet(this);
              // This line prevents the "Swing: checked access to system event queue" message seen in some browsers.
              getRootPane().putClientProperty("defeatSystemEventQueueCheck", Boolean.TRUE);
              // This code is automatically generated by Visual Cafe when you add
              // components to the visual environment. It instantiates and initializes
              // the components. To modify the code, only use code syntax that matches
              // what Visual Cafe can generate, or Visual Cafe may be unable to back
              // parse your Java file into its visual environment.
              //{{INIT_CONTROLS
              getContentPane().setLayout(new GridBagLayout());
              setEnabled(false);
              getContentPane().setBackground(java.awt.Color.lightGray);
              setSize(800,800);
              getContentPane().add(AdmTab, new com.symantec.itools.awt.GridBagConstraintsD(0,1,2,1,0.5,0.5,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.HORIZONTAL,new Insets(3,12,4,14),120,120));
              AdmTab.setFont(new Font("Dialog", Font.PLAIN, 12));
              titleLbl.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
              titleLbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
              titleLbl.setText("EAD Administration");
              getContentPane().add(titleLbl, new com.symantec.itools.awt.GridBagConstraintsD(0,0,1,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(12,36,0,0),307,15));
              titleLbl.setForeground(java.awt.Color.blue);
              titleLbl.setFont(new Font("Dialog", Font.BOLD, 15));
              exitBtn.setText("Exit EAD Administration");
              exitBtn.setActionCommand("Exit EAD Administration");
              getContentPane().add(exitBtn, new com.symantec.itools.awt.GridBagConstraintsD(0,2,2,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(6,371,10,14),66,8));
              exitBtn.setFont(new Font("Dialog", Font.PLAIN, 12));
         //theFrame.setVisible(false);
         login();
         AdmTab.addTab("Administration", new LogoPanel() );
         userPanel = createUserPanel();
         AdmTab.addTab("Edit Users", userPanel );
         fpoPanel = createFPOPanel();
         AdmTab.addTab("Edit FPO", fpoPanel );
         regulationPanel = createRegulationPanel();
         AdmTab.addTab("Edit Regulations", regulationPanel );
         rolloverPanel = createRolloverPanel();
         AdmTab.addTab("Rollover", rolloverPanel );           
              //{{REGISTER_LISTENERS
         SymMouse aSymMouse = new SymMouse();
              this.addMouseListener(aSymMouse);
              SymAction lSymAction = new SymAction();
              exitBtn.addActionListener(lSymAction);
              SymKey aSymKey = new SymKey();
              this.addKeyListener(aSymKey);
         theFrame.getContentPane().add(this);
    public class EADAdmFrame extends JFrame
    EADAdm theApplet;
    public EADAdmFrame(EADAdm theMainApplet)
              //{{INIT_CONTROLS
         //     theApplet = theMainApplet;
         //     this.getContentPane().add(theApplet);
              getContentPane().setLayout(new BorderLayout(0,0));
              getContentPane().setBackground(java.awt.Color.lightGray);
              setSize(1000,1000);
              setVisible(false);
         theApplet = theMainApplet;
              //{{REGISTER_LISTENERS
              SymWindow aSymWindow = new SymWindow();
              this.addWindowListener(aSymWindow);
              SymComponent aSymComponent = new SymComponent();
              this.addComponentListener(aSymComponent);

  • JScrollPane size problems with horizontal bar

    Hello,
    I have made a panel with some lines of text (JLabels). The panel is contained inside a JScrollPane. When it gets a horizontal scrollbar, the bar hides the bottom-most line of text and you get a vertical scrollbar too.
    How do I get the JScrollPane to add the height of the horizontal scrollbar to its own height if it still fits inside its own maximum height? It is ridiculous when you have like 3 lines of text inside it and you have to scroll it to see the bottom line.
    Thanks,

    Thanks, that solved the problem good enuff for me here. Now I also got another similar problem, at http://forum.java.sun.com/thread.jsp?forum=57&thread=206828. Got any ideas on that :) ?

  • Initial Set Up Problem With Included Cable

    As I excitedly unpacked my new ipad yesterday and cut it on I got the connect to itunes alert on the screen which I expected. When I made the connection with the included cable to my laptop and activated itunes nothing happened, itunes never recognized the ipad and cutting the ipad on off just continued to show the connect to itunes alert. I was beginning to panic a little at that point. Tried closing and reopening itunes, rebooting the computer, rebooting the ipad. Nothing worked. Then I tried that reset method of holding down the sleep/wake and home buttons down until the Apple symbol comes up. Apparently doing it the way I did put it in recovery mode which for some reason itunes recognized and went through the laborious process of downloading the software and preforming a restore.
    I wasn't happy about that but at least itunes finally "saw" the ipad. So after it went through that process a message came up that the restore was being verified with Apple. After several minutes of that got a message that restore had failed. Now I was really panicked and tried to do the same all over again hoping that it would work. Well it didn't work, kept coming back to the failed message and essentially now I had a brick. I calmed down a little and went online to make an appointment with the genius bar of a local Apple store for this morning. Out of curiosity and as a last resort I tried one of my iphone cables and right away I noticed something. Whenever you connect an ipod touch, iphone or ipad to a charger you get that little audible sound that I call a trill. Well I heard that right away when I used the iphone cable which made me realize that I had not heard that on any of my previous attempts. iTunes saw the ipad, went through the activation process and everything set up fine afterwards. I cancelled the genius bar appointment.
    I thought I would post this just in case others may run into the same problem. By the way my wifi has worked perfectly so far with no connection issues. Don't know when or if I will set up the 3G access.

    Thanks for the suggestion but I did purchase Applecare as well so I shouldn't have any problem if there is an issue. And I probably will check out 3G at some point but for now there are no issues at all, no wifi connection issues, no drops coming out of sleep, no weak or slow connections. Nothing like what I've read in these other threads so I don't really expect any 3G problems.

Maybe you are looking for

  • Service entry problem when not accepted

    We have a problem when there are multiple service entries agains a PO. There are no problems when we do the first entry and accept. The problem happens when we do a second entry and the end user only saves and forgets to accept the SES. When they do

  • How can i get input from microphone?

    Hi, I am trying to create a program that essentially tries to detect the Microphone . Pls tell how can i perform this. Any suggestions, pls?

  • Oracle BPEL Installation in Solaris

    Hi all, Can anybody give some tips on how to install the Oracle BPEL in a Solaris environment. i did the oracle BPEL 10.1.2 installation in windows machine and did a POC.Now i want to replicate the same setup in a solaris environment and do a perform

  • Setting xsi:type in XMLBeans

    I'm trying to create a schema with an abstract class and two subclasses. (see below) The xml saves fine, but when I try to load it the parser doesn't resolve the classes to the subclass. Is there a way of setting the xsi:type as an attribute so that

  • Change RT controller in example

    We have a NI example program that sounds like a good fit but the example uses a cRIO 9011 and we are using a 9014. Do we have to rebuild the entire project or is there a simple way to swap the controller and keep all the modules and references intact