jeyzza | 3 Dec 21:29
Picon

Exception in thread "main" java.lang.UnsupportedClassVersionError

Hi
 i have this problem

java.lang.UnsupportedClassVersionError: flanagan/integration/DerivFunction : Unsupported
major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: RungeKuttaExampleFour.  Program will exit.

I have Product Version: NetBeans IDE 7.0.1
Java JDK version: 1.6.0_23
System: Windows 7 

Can someone help me with this problem?
Thanks

Petr Cyhelsky | 5 Dec 07:19
Picon
Favicon

Re: Exception in thread "main" java.lang.UnsupportedClassVersionError

Hi,
On 12/03/2011 09:29 PM, jeyzza wrote:
> Hi
>   i have this problem
>
> java.lang.UnsupportedClassVersionError: flanagan/integration/DerivFunction : Unsupported
major.minor version 51.0
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
> 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: RungeKuttaExampleFour.  Program will exit.
>
> I have Product Version: NetBeans IDE 7.0.1
> Java JDK version: 1.6.0_23
> System: Windows 7
If it is reproducible it would be best to report the exception using the 
exception reporter feature 
http://blogs.oracle.com/coreqa/entry/report_exceptions_in_an_easy in 
this way developers will have most of the needed information and the 
issue can be much easier to track and solve. Also please be kind enough 
to write the steps to reproduce the exception into the description field.
(Continue reading)

Tomas Hurka | 5 Dec 10:51

Re: Exception in thread "main" java.lang.UnsupportedClassVersionError

Hi,

You are running classfile compiled for JDK7 on JDK6.

On 3 Dec 2011, at 21:29, jeyzza wrote:
> i have this problem
> 
> java.lang.UnsupportedClassVersionError: flanagan/integration/DerivFunction : Unsupported
major.minor version 51.0
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
> 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: RungeKuttaExampleFour.  Program will exit.
> 
> I have Product Version: NetBeans IDE 7.0.1
> Java JDK version: 1.6.0_23
> System: Windows 7 

Bye,
--
Tomas Hurka   <mailto:tomas.hurka@...>
(Continue reading)

Raimon Bosch | 12 Dec 19:17
Picon

Profiling JRuby with Netbeans


Hi,

I want to profile a Ruby application with Netbeans profiler so I have migrated the project to JRuby and now I want to see nice performance statistics. There is any trick to use the profiler to see a JRuby application? I was thinking that maybe I can create a Java application with a main that executes my Ruby tests or something like this.

There is any plan to integrate ruby-prof inside Netbeans, to profile any kind of ruby application?

Thanks in advance,
raimon.bosch | 12 Dec 19:08
Picon

Profiling JRuby with Netbeans

Hi,

I'm trying to get some performance statistics form a Ruby application
and I would like to use the Netbeans profiler. For that I have migrated
the project to JRuby.

Is it any way to run a JRuby application in the Netbeans profiler?

wmc | 15 Dec 00:08

Remote attach without waiting for application to start.

The instructions for remotely connecting to a java app to profile it are:
1. launch my java app on the remote server with the agentpath option set.  The app will launch, but wait until
the profiler attaches.

But I dont' want it to wait for me.  Is this possible?  How do I do it?

I could launch it the first time, attach, but then I want to be able to let it run and let me reattach/detach at will.

But I read somewhere else that it won't profile threads that start before I attach, and I don't know if it will
be useful to me if I can't see running threads because I attached after they started.  Is this true?

Tomas Hurka | 22 Dec 18:40

Re: Profiling JRuby with Netbeans

Hi Raimon,

On 12 Dec 2011, at 19:17, Raimon Bosch wrote:
> I want to profile a Ruby application with Netbeans profiler so I have migrated the project to JRuby and now I
want to see nice performance statistics. There is any trick to use the profiler to see a JRuby application?
I was thinking that maybe I can create a Java application with a main that executes my Ruby tests or
something like this.
JRuby application can be profiled only as ordinary Java application. Which version NetBeans do you have?
Do you have your application as NetBeans project?

> There is any plan to integrate ruby-prof inside Netbeans, to profile any kind of ruby application?
No, there is no such plan. Ruby, Ruby on Rails Support Discontinued in NetBeans IDE 7. See <http://netbeans.org/community/news/show/1507.html>

Bye,
--
Tomas Hurka   <mailto:tomas.hurka@...>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.java.net
Software Developer
Oracle, Praha Czech Republic

Tomas Hurka | 22 Dec 18:48

Re: Remote attach without waiting for application to start.


On 15 Dec 2011, at 00:08, wmc wrote:

> The instructions for remotely connecting to a java app to profile it are:
> 1. launch my java app on the remote server with the agentpath option set.  The app will launch, but wait until
the profiler attaches.
> 
> But I dont' want it to wait for me.  Is this possible?  How do I do it?
For remote profiling, it is not possible. This only works for local profiling.

> I could launch it the first time, attach, but then I want to be able to let it run and let me reattach/detach at will.
For remote profiling, once you detach you cannot reattach. This again only works for local profiling. 

There is a workaround for remote profiling, you can attach on startup and use in 'Monitoring' mode. This
will just collect some JVM statistics. Once you want to start profiling, you can change profiling mode to
CPU or Memory profiling and when you are done, you can again switch back to 'Monitoring' mode. 

Bye,
--
Tomas Hurka   <mailto:tomas.hurka@...>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.java.net
Software Developer
Oracle, Praha Czech Republic

alekoc | 23 Dec 11:24
Picon

Profiler general questions

Hello, Dear Profiler Experts
I am trying the NB Profiler for the memory leak search, but still don't know how to do this. I read few times
tutorials on NB site, but the questions are still existing. Could you answer some general questions, please?
Next are my project pictures from Profiler with my comment.
1. Why Surviving generations line has a step up when I force GC? What is happening?
2. Does it mean the memory leak if Surviving generations has a step up every time when I open JDialog and run
some process? Why the heap pink area goes up every time when I do this?
3. What means if Surviving generations line has a step down during the profiling (it happens sometime)?
4. Why the heap size is 64MB on start, but about 49MB later? How JVM is assigning the heap size?  
5. What is the difference between «Live Objects» and «Allocated Objects»?
6. Does it mean the memory leak if number of Allocated Objects more than number of Live Objects?
7. How can I find my code or class in case of memory leak, if memory picture shows java.lang.String class?
What is the scenario to get it?  
8. What is the best indicator of the memory leak in Profiler information?
9. What are the best recommendations for the memory leak searching?

Attachments: 
http://forums.netbeans.org//files/surv_944.jpg
http://forums.netbeans.org//files/heap_197.jpg
http://forums.netbeans.org//files/memory_193.jpg

sanind | 25 Dec 11:11
Picon

Profiling junit test in J2EE project

Long Path Tool is very useful if you are having problems in deleting, unlocking, copying and even renaming
files that are considered filename too long by your system. Yes, these problems can occur even while using
the latest Windows Explorer or FAR in managing your files.  This tool can help you simplify files names that
are categorized as filename too long by your system.
 Long Path Tool  (http://www.longpathtool.com/)


Gmane