An unexpected error has been detected by Java Runtime Enviro

This forum is about all development around libVLC.
godotvt
New Cone
New Cone
Posts: 9
Joined: 03 Mar 2009 17:19

An unexpected error has been detected by Java Runtime Enviro

Postby godotvt » 03 Mar 2009 17:45

Hi i try to do a method to manage (play ,stop,pause,volume controll) media file with vcl and i use jvlc-core-0.9.0-SNAPSHOT-20080727.jar. At First i create this class to play a file ( i find a several example but i have alaways the same problem)

public class VlcTest {


public static void main(String[] args)
{


System.out.println("== Starting VLCExample ==");
if (args.length == 0)
{
System.out.print("Creating a JVLC instance without args");
}
else
{
System.out.println("Creating a JVLC instance with args: ");
for (int i = 0; i < args.length; i++)
{
System.out.println(i + ") " + args);
}
}
JVLC jvlc = new JVLC();
System.out.println("... done.");

MediaDescriptor mediaDescriptor = new MediaDescriptor(jvlc, "c:/virgola_Il_Gattino.mp3");
mediaDescriptor.getMediaPlayer().play();
}
}

But when i lunch the program with eclipse i have this problem


# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x62e54a65, pid=2988, tid=2724
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing windows-x86)
# Problematic frame:
# C [libvlc.dll+0x94a65]
#
# An error report file with more information is saved as:
# C:\workspaces\Test\eclipse_workspace_test\esternal_program\hs_err_pid2988.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

I use the the debug and this problem is when the program excute this this line " JVLC jvlc = new JVLC();" i try with the args "JVLC jvlc = new JVLC();"

Before i already copy the libvlc.dll in foldere winSystem32

Someone can help me? Thanks

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests