Click here to Skip to main content
16,008,010 members
Home / Discussions / Java
   

Java

 
Question[Message Deleted] Pin
rajisweety7-Jun-09 7:45
rajisweety7-Jun-09 7:45 
AnswerInappropriate Title Pin
fly9047-Jun-09 10:32
fly9047-Jun-09 10:32 
GeneralI am getting the error when I try to execute a Query. Error retrieving data:1 java.sql.SQLException: [Macromedia][Oracle JDBC Driver]Value can not be converted to requested type.Exception in DBAccessor:formatResults java.sql.SQLException: [Macromedia Pin
ummadu5-Jun-09 10:40
ummadu5-Jun-09 10:40 
GeneralI am getting the error when I try to execute a Query. Error retrieving data:1 java.sql.SQLException: [Macromedia][Oracle JDBC Driver]Value can not be converted to requested type.Exception in DBAccessor:formatResults java.sql.SQLException: [Macromedia Pin
ummadu5-Jun-09 10:40
ummadu5-Jun-09 10:40 
GeneralError getting column type Pin
fly9047-Jun-09 10:41
fly9047-Jun-09 10:41 
Questionclient server communication Pin
dumnbncool5-Jun-09 7:21
dumnbncool5-Jun-09 7:21 
QuestionBackground dimmer Pin
EnchantedSun5-Jun-09 3:56
EnchantedSun5-Jun-09 3:56 
QuestionProblem with JSObject Pin
raesa5-Jun-09 2:44
raesa5-Jun-09 2:44 
Hi,

I have written a small code to access javascript function from a java applet.
My function fails at this point
JSObject win = JSObject.getWindow(this);

I do not understand what is the reason.It gives me following errors when i excute the program :

Exception in thread "main" java.lang.UnsatisfiedLinkError: initClass
at netscape.javascript.JSObject.initClass(Native Method)
at netscape.javascript.JSObject.<clinit>(JSObject.java:61)
at test.InJava4.start(InJava4.java:52)
at test.Main.main(Main.java:30)


Please have a look at my code written below and tell me if i have written anything wrong.Please do help me out. Thnx.
My java Applet code is written below :

import java.net.*;
import java.applet.*;
import netscape.javascript.*;
import netscape.javascript.JSException;

public class InJava extends java.applet.Applet
{
public void init()
{
try
{
System.out.println("hi i am in appltet");
String msg = "Hello from Java (using javascript alert)";
JSObject win = JSObject.getWindow(this);
win.call ("doAlert", null);
}
catch (Exception Ex)
{
System.out.println(Ex.toString());
}
}
public void start(){}
public void stop(){}
public void destroy(){}
}

My JavaScript is written below :

;

function doAlert(s) {
alert(s);
}

<applet code="InJava.class"
="" name="myApplet" mayscript
="" height="10" width="10">



QuestionJava Swing - Right Click and JPopupMenu in JTable Pin
djDash5-Jun-09 0:25
djDash5-Jun-09 0:25 
QuestionRe: Java Swing - Right Click and JPopupMenu in JTable Pin
Java John11-Jun-09 1:59
Java John11-Jun-09 1:59 
QuestionCreating a file and saving it on a networked computer [modified] Pin
ItIsFinished4-Jun-09 12:00
ItIsFinished4-Jun-09 12:00 
AnswerRe: Creating a file and saving it on a networked computer [modified] Pin
darkdragn5-Jun-09 2:45
darkdragn5-Jun-09 2:45 
GeneralRe: Creating a file and saving it on a networked computer Pin
ItIsFinished5-Jun-09 5:44
ItIsFinished5-Jun-09 5:44 
QuestionWriting a simple HTML report using Java Pin
raesa3-Jun-09 20:15
raesa3-Jun-09 20:15 
AnswerRe: Writing a simple HTML report using Java Pin
Ali Shakiba10-Jun-09 22:19
Ali Shakiba10-Jun-09 22:19 
Questionneed help geeting a nullpointerexeption [modified] Pin
ashish_bhatia3-Jun-09 1:07
ashish_bhatia3-Jun-09 1:07 
AnswerRe: need help geeting a nullpointerexeption Pin
Nagy Vilmos3-Jun-09 2:00
professionalNagy Vilmos3-Jun-09 2:00 
RantRe: need help geeting a nullpointerexeption [modified] Pin
ItIsFinished4-Jun-09 12:13
ItIsFinished4-Jun-09 12:13 
GeneralRe: need help geeting a nullpointerexeption Pin
Nagy Vilmos5-Jun-09 3:46
professionalNagy Vilmos5-Jun-09 3:46 
QuestionMobile Application Pin
cdpace2-Jun-09 23:40
cdpace2-Jun-09 23:40 
AnswerRe: Mobile Application Pin
Nagy Vilmos3-Jun-09 0:08
professionalNagy Vilmos3-Jun-09 0:08 
Questionretrieving selected item from jComboBox in jTable Pin
Denis J. González1-Jun-09 9:16
Denis J. González1-Jun-09 9:16 
AnswerRe: retrieving selected item from jComboBox in jTable Pin
darkdragn1-Jun-09 9:25
darkdragn1-Jun-09 9:25 
GeneralRe: retrieving selected item from jComboBox in jTable Pin
Denis J. González1-Jun-09 9:43
Denis J. González1-Jun-09 9:43 
QuestionMobile Programming Pin
Sourie30-May-09 19:28
Sourie30-May-09 19:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.