- This topic has 6 replies, 5 voices, and was last updated 9 years, 4 months ago by support-piotr.
-
AuthorPosts
-
Michael StaceyParticipant2014 allowed you to add arguments to the JVM that ran the servers. It seems like that feature is gone in 2015. How do you increase permgen, for example, in the JVM that is running the web server in ME 2015?
support-swapnaModeratorStacey,
You can the add the JVM arguments to the server in MyEclipse 2015 as detailed in this thread.
Let us know if you see any issues.
chandan-kumarParticipantIs there any way to programmatically set (using Java) the values for VM Arguments and adding Jars in Classpath tab in MyEclipse 2015. Earlier (Till MyEclipse 2014) we used Java program and imported eclipse provided jar/libraries which help us to set the JVM arguments (VM Arguments and Jars in Paths). Now as this option is not available in MyEclipse 2015 (JDK and PATH section for Weblogic Configuration) each time manually we are adding them.
support-tonyKeymasterchandan-kumar,
I’m not clear on how you set up the JVM arguments up to MyEclipse 2014, or how you used a Java program to help in this. Is it possible to give more details, so that we can see how you might be able to do something similar in 2015? Once you make changes in the launch configuration, and Apply them, you shouldn’t need to make the changes again.
chandan-kumarParticipantHi,
We imported eclipse provided jars/libraries as shown below:
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
import org.eclipse.jdt.launching.IVMInstall;
import org.eclipse.jdt.launching.IVMInstallType;
import org.eclipse.jdt.launching.JavaRuntime;
import org.eclipse.jdt.launching.LibraryLocation;Inside class we have a method whose snippet is mentioned below:
public static IRuntimeClasspathEntry[] getServerClasspathEntries(String path, Properties props)
IRuntimeClasspathEntry[] classpathEntries = null;
// Add the Java VM system libraries to the classpath.
classpathEntries = getVMBootStrapLibsEntries();[Setting the properties]
.
.
IRuntimeClasspathEntry entry = getJarEntry(toolsJar, IRuntimeClasspathEntry.USER_CLASSES);
classpathEntries = mergeEntries(classpathEntries, new IRuntimeClasspathEntry[]{entry});
.
.Till MyEclipse 2014 we were using this code and it works fine for us. But now it is not working after upgrading to MyEclipse2015.
support-tonyKeymasterchandon-kumar,
I’ve asked the developers to take a look at this. However, this isn’t a supported feature so I’m not sure we will be able to help.
support-piotrParticipantchandon-kumar,
Launch configuration setup has changed in MyEclipse 2015, e.g. the id of configuration type has changed. However, you should be able to modify it programmatically without problems as all the configuration options (classpath, JVM args, etc.) are stored in standard Java Launch Config fields (IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, IJavaLaunchConfigurationConstants.ATTR_CLASSPATH, …). Please note that Launch configurations are created per configured server connector.
If you need more detailed directions, I would have to have a look at your source code.
Best regards,
Piotr Tomiak -
AuthorPosts