Click here to Skip to main content
15,884,237 members
Home / Discussions / Java
   

Java

 
AnswerRe: how to use tmx map in my code Pin
Richard MacCutchan24-Mar-13 23:43
mveRichard MacCutchan24-Mar-13 23:43 
Questioncan anyone help me with my final project Pin
java_beginer24-Mar-13 8:18
java_beginer24-Mar-13 8:18 
AnswerRe: can anyone help me with my final project Pin
Marco Bertschi24-Mar-13 11:00
protectorMarco Bertschi24-Mar-13 11:00 
GeneralRe: can anyone help me with my final project Pin
java_beginer24-Mar-13 11:12
java_beginer24-Mar-13 11:12 
GeneralRe: can anyone help me with my final project Pin
Richard MacCutchan24-Mar-13 23:42
mveRichard MacCutchan24-Mar-13 23:42 
GeneralRe: can anyone help me with my final project Pin
ajp5527-Mar-13 0:30
ajp5527-Mar-13 0:30 
GeneralRe: can anyone help me with my final project Pin
bakary.konate30-Apr-13 22:14
bakary.konate30-Apr-13 22:14 
Questionexception : javax.naming.NoInitialContextException: Pin
swarjava23-Mar-13 17:41
swarjava23-Mar-13 17:41 
Hi,
I have written a simple ejb application(stateless session bean) in eclipse. When iam running the client program getting the below exception on console:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

My client program is as below:
import javax.naming.InitialContext;

import example.ExampleSessionBeanRemote;

public class Main {
public void runTest() throws Exception {
InitialContext ctx = new InitialContext();
ExampleSessionBeanRemote bean =
(ExampleSessionBeanRemote) ctx
.lookup("ejb/ExampleSessionBean");
int result = bean.multiply(3, 4);
System.out.println(result);
}

public static void main(String[] args) {
Main cli = new Main();
try {
cli.runTest();
} catch (Exception e) {
e.printStackTrace();
}
}
}

How to solve the above exception, do i need to include something in websphere, i have just include the jar file of the session bean i have written in eclipse.

Thanks.
AnswerRe: exception : javax.naming.NoInitialContextException: Pin
Prasad Khandekar26-Apr-13 0:30
professionalPrasad Khandekar26-Apr-13 0:30 
QuestionOnlick POPUP the Calender month based on dropdownlist Pin
siddiqali md21-Mar-13 2:17
siddiqali md21-Mar-13 2:17 
AnswerRe: Onlick POPUP the Calender month based on dropdownlist Pin
Richard MacCutchan21-Mar-13 3:32
mveRichard MacCutchan21-Mar-13 3:32 
QuestionHow to import file and compare the file with other file in j2se platform Pin
Member 824369315-Mar-13 9:47
Member 824369315-Mar-13 9:47 
AnswerRe: How to import file and compare the file with other file in j2se platform Pin
Richard MacCutchan15-Mar-13 23:11
mveRichard MacCutchan15-Mar-13 23:11 
AnswerRe: How to import file and compare the file with other file in j2se platform Pin
Prasad Khandekar26-Apr-13 0:36
professionalPrasad Khandekar26-Apr-13 0:36 
GeneralGame Development using Android Platform Pin
Celmar Galindez14-Mar-13 3:31
Celmar Galindez14-Mar-13 3:31 
GeneralRe: Game Development using Android Platform Pin
Richard MacCutchan14-Mar-13 4:55
mveRichard MacCutchan14-Mar-13 4:55 
QuestionQueue implementation in java Pin
KishoreT14-Mar-13 2:15
KishoreT14-Mar-13 2:15 
AnswerRe: Queue implementation in java Pin
Richard MacCutchan14-Mar-13 3:02
mveRichard MacCutchan14-Mar-13 3:02 
AnswerRe: Queue implementation in java Pin
Amarnath S4-May-13 5:48
professionalAmarnath S4-May-13 5:48 
QuestionHelps, Rijndael on java swing Pin
code99013-Mar-13 23:20
code99013-Mar-13 23:20 
AnswerRe: Helps, Rijndael on java swing Pin
Nagy Vilmos14-Mar-13 1:07
professionalNagy Vilmos14-Mar-13 1:07 
GeneralRe: Helps, Rijndael on java swing Pin
code99015-Mar-13 0:15
code99015-Mar-13 0:15 
QuestionThread implementation in Eclipse Plug-in Pin
KishoreT13-Mar-13 6:19
KishoreT13-Mar-13 6:19 
QuestionRegarding K-means Text Clustering Pin
sunny funny12-Mar-13 21:43
sunny funny12-Mar-13 21:43 
AnswerCross posted from C# forum Pin
Pete O'Hanlon12-Mar-13 22:05
mvePete O'Hanlon12-Mar-13 22:05 

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.