473,396 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Why do java not work?

Exception in thread "main" java.lang.NoClassDefFoundError: showversion
Caused by: java.lang.ClassNotFoundException: showversion
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: showversion. Program will exit.

I get this error everytime i want to check te version of java, i use java JDK + JRE 1.6.0_45 so i can i build Android with it!

How can i fix this?
Nov 9 '13 #1
6 1858
Luuk
1,047 Expert 1GB
Try:
Expand|Select|Wrap|Line Numbers
  1. java -version
or, if you are actually running some code:
Expand|Select|Wrap|Line Numbers
  1. java -showversion somecode.class
Nov 9 '13 #2
I tried that but i still get the error, i use cygwin ( latest version) on windows 8.1 and i want to build Android KitKat
Nov 9 '13 #3
Nepomuk
3,112 Expert 2GB
You're on Windows 8.1 and still use Java 1.6? That's an odd combination; you should update to 1.7 if possible.

Also, please tell us the command you're using and which results in the above error. It's no good if we have to guess.
Nov 11 '13 #4
I use the command 'make' to make a android build, but for that i need java 1.6 jdk + jre, it doesn't support java 1.7 JDK + JRE.
Nov 11 '13 #5
itsraghz
127 100+
Hi,

You yourself have an answer. If you are specifically looking for a different version of JRE, directly download it from http://oracle.com.

However, as far as any software is concerned (not just Java), whatever you are able do to with version x, should definitely be doable with version x+1.
Nov 12 '13 #6
Nepomuk
3,112 Expert 2GB
I'm guessing you're following these instructions, right? Have you initialized the build and chosen a target? And I also assume you've followed all steps under Initializing the Build Environment, right?
Nov 12 '13 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Rajesh Kapur | last post by:
Does Java work better than PHP with MySQL? What are pros and cons of using Java or PHP? I am concerned Java may be slower than PHP with MySQL. Can someone share the experience or point me to some...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
4
tpgames
by: tpgames | last post by:
Does Java work on a linux server? If not, is there a work around? Thanks!
0
by: TechRecruit Consultants | last post by:
Hi Greets! This is sandy,Working in TechRecruit Consultants,Chennai as Head Operaitons - Recruitment. Currently we have openning in Unix/SQL/Oracle/JAVA for ISO 9001:2000/ CMM LEVEL 5 ...
0
by: TechRecruit Consultants | last post by:
Hi Greets! This is sandy,Working in TechRecruit Consultants,Chennai as Head Operaitons - Recruitment. Currently we have openning in Unix/SQL/Oracle/JAVA for ISO 9001:2000/ CMM LEVEL 5 ...
66
by: flarosa | last post by:
Hi, I'm wondering if I can get a reasonably civil (without starting any huge wars) opinion on how server-side PHP compares to server-side Java. I've been strictly a Java developer for almost...
17
by: thinboy | last post by:
Hi I need help starting my Java work, this is the scenario: This system is intended to provide the school timetabler with information to support his/her timetabling activities. Please note it is...
8
by: tenxian | last post by:
Is PHP more suitable for developing an interactive website than Java/ J2EE?
0
by: jvjv | last post by:
Cross Tab Queries: How to work with crosstab2 function I have to return more than one category as sum(qty) and sum(value) for monthly analysis
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.