DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Specifying VM with Eclipse

Specifying VM with Eclipse

Sandeep Bhandari user avatar by
Sandeep Bhandari
·
Apr. 26, 11 · Interview
Like (0)
Save
Tweet
Share
4.21K Views

Join the DZone community and get the full member experience.

Join For Free

Today we had an issue with the Eclipse IDE showing the splash screen and closing prematurely. A look at a fresh eclipse.ini and the one in the current didn't give any differences.

The log file created in the .metadata folder of the workspace also didn't point to the exact problem.

Here are the things we tried:
1) Increase heap size in eclipse.ini
2) Removed the plugins specified in the eclipse.ini file
3) Tried a fresh Eclipse

Running eclipse.exe from command line didn't show any error messages. Then we tried eclipsec.exe present in the Eclipse_Home directory and it told that VM could not be located. The exact error message was:

NoClassDefFoundError: Java/Lang/Object

We tried to run eclipse using command line arguments like:
C:/>eclipse.exe -vm /javaw.exe
This resolved the issue and eclipse started fine.

Then we added -vm /javaw.exe to eclipse.ini bout eclipse couldn't start by double clicking eclipse.exe. Then after trying a few things we ended up with:
-vm
/javaw.exe

and it worked with the newline character.

The above information could be helpful to people who get into this situation in future

From http://extreme-java.blogspot.com/2011/04/specifying-vm-with-eclipse.html

Virtual Machine Eclipse

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Stop Using Spring Profiles Per Environment
  • How To Build a Spring Boot GraalVM Image
  • Real-Time Analytics for IoT
  • How We Solved an OOM Issue in TiDB with GOMEMLIMIT

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: