Charlie Swanson

Ranch Hand
+ Follow
since Jan 29, 2001
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Charlie Swanson

I am trying to locate the initial context factory, and I am receiving the error: ClassNotFound for com.sun.jndi.fscontext.RefFSContextFactory.
I have reinstalled SDK1.4 the most current version of Java. I cannot seem to locate the jndi files on my system. I have performed a scan for jndi and I found nothing. Does anyone have any suggestions?
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.util.*;
import javax.naming.*;
public class jndiTest {
static String name;
public static void main(String args[]) {
if (args.length > 0) name = args[0];
Hashtable env = new Hashtable();
"com.sun.jndi.fscontext.RefFSContextFactory" );
try {
// Create the initial context
Context ctx = new InitialContext(env);
// Look up an object
Object obj = ctx.lookup(name);
// Print it
System.out.println(name + " is bound to: " + obj);

} catch (NamingException e) {
System.err.println("Problem looking up " + name + ": " + e);
17 years ago
I am just getting started with J2EE. I am using something called Ant. I have the path set up to find the ant bin directory. ANT_HOME points to the ant top ant directory. The classpath is set up for the bin and library directories.
Can you explain how to run ant?
17 years ago
How do I compile the below program given that the class Exercise5_2 is suppose to be in chatclient.
Do I need to make a directory, or will the this command create the directory automatically in addition to putting the class in the package.
Assume that the source c:/Chat/Exercise5_2.
Thanks in advance.
package chatclient;
import chat.*;
public class Exercise5_2 {
public static void main(String args[]) {
17 years ago
Make sure you have reviewed file constuctors and file hierarchy, threads and language fundamentals.

Great news!!
After several meetings, this has been totally resolved!!
18 years ago
Cindy, you have a great point. I have done the following:
1. suggested to the account executives assistance that I have my
classes delivered by another location.
2. called the local account exec which resulted in no responce 3. contacted the corporate office representative
4. waited and worked with the local school for a little less
than a year. I fear that if I don't act fast I may loose my
investment as it was originally a 1 year-contract.
5. attempted to contact the ceo of the corporate headquarters;
however, the phone call was not transfered.
The suggestion of writing a legal sounding letter sound great. Does anyone even know where I can get a hold of such a model that I can use or the name of such a thing or a reference of some sort.
If anyone else has any suggestions of what I can do to have the classes delivered to me before I loose them, I would greatly appreciate the help.
I thought of a legal assistance that was free, but I do not know where to find it. Any suggestions?

My sincerelist thanks,
18 years ago
So far I have called the better business bureau, and an online consumer protection web page. I have also called the corporate office to gain assistance from them. I found a web site that gives legal advice through email and I have given them the situation. I also found another website which takes in the information and will contact the training center.
I was thinking about calling the local consumer protection agency which I believe is the florida attorney general office and the chamber of commerce (if they could help).
I really need an attorney, but as I am suppose to be going to this technical training school I am not currently working. I will probably speak with one on Tuesday though. He specializes in consumer protection. If anyone knows of a good attorney that can work a case in Fort Lauderdale florida let me know I will check him out. Does anyone have any information of how to get a pro bono lawyer( that is a lawyer for people who cannot afford one)
If anyone can think of anything I have left out that should be done please let me know, this training and certification really means a lot to me. (You know like a good career or maybe the start of a small business)
18 years ago
I paid by visa check card in August of last year.
18 years ago
I bought 8000.00 of training from a fortune 100 Fastest Growing Companies in America (New Horizons of Fort Lauderdale), and the branch I am going to has not delivered the classes.
I have emailed a consumer group,called the corporate office, and the owner has been notified.
Does anyone else have any suggestions?
18 years ago
To response to your question "how did I attack my weak spots":
I took the generic JQ+ test. That test shows your the percentage in each area. If I received a low area. I would study the questions I missed. If necessary, I would study the whole are or just the area missed depending on what knowledge was missing.
Another thing I did was after I restudied an area. I would take the JQ+ exam just on that area. If I felt shaky I would start out with the easy exams, always checking for something I did not understand. If it was a small point, I would just understand it. If it was something I just did not understand, I would restudy again. Also, if I understood an answer and I just needed more clarification or some help on it, I would post the question on java ranch.
Another thing, when you get past learn the basics of the language and get down to just studying for the exam make sure you are studying something that is an objective. (It's easy to loose track, and loose lots of time studying things that are good but not on the exam.)
Have fun with it!
18 years ago
The first one is executed at runtime, and therefore the JVM knows that variable K exists; but it has not been initialized yet.
The second one is determined at compile time. However, variable j must be declared and assigned a value before it is used.
j = 10;
i = j;
The below code runs. Class B's constructor has access to Class A's print method.
public class A
void print() {}
void print(int val) {System.out.println("print()"); }
class B
void print(1);
void show()
print(1); //has access to the local print(1) not class
// A's print(1)
B() { print(1); //has access to class A's print(1) method
public static void main(String args[]) {
new A().new B();
Just for your information, have you heard about the new adaptive Sun exam that Sun is talking about. It's not out yet.
I do not know when it will go live.
I believe the reason is due to the synchronization. Since you have the same object running, the variables will also be shared.
In addition, note how the locks will be given. A lock will be given, and then released. Right after it is release, the other thread can access the same lock, and update the static variable that is shared. But, we do not know for sure that this will happen. It is only a possibility.