Hi,
I am trying to send a file through a java socket and receive it through another. However, this happens:
Send Content:
/*
This is simply a file to transfer
*/
Received:
¨Ì
Hi
I'm new to java.
I'm trying to use some dynamically loaded classes in my application.
The application doesn't know classes , Just it try to load a class by name that its name came from input.
It doesn't know class (So I can't use casting) but just needs to call some methods of that class (every class should have that methods).
I thought about interfaces but I don't know how.
How can I call those methods?
Thanks
I have seen that there many books titled
1)Build Ecommerce website in php
2)Build shopping cars in php or asp.net
Is there any book which explains from scratch how to start building a website in java using any frame work or with servlets or jsp
like
1)Basic form with logins and registration
2)building catalogue system
3)Building shopping cart
4)Building newletters system
So i can strat reading it
hi, simple question :
I need to write cross platform application (basically CRUD).
Is usage of Java Swing good idea? Or is it out-dated and you know better solution?
I dont want to use like 5 languages for various stuff, one or two should be enough.
Thanx!
I'm trying to extend a Java Swing component in Clojure, i.e. I want to extend a javax.swing.JComponent and add some custom methods implemented in pure Clojure in addition to all the standard inherited methods.
I've tried using "proxy" which works great if I just want a single instance (in the same way as an anonymous inner class). However I'd really like a named class so that I can generate an arbitrary number of instances.
What's the recommended way of doing this?
I'm writing a program that uses scp to copy files in a bigger java program. As it stands now, the program freezes up while the scp is copying the file, which can take a few minutes, so I'd like to be able to display the progress of the scp or at the very least get the terminal window with the scp progress to show up! Any suggestions?
Is it possible to create a simple server in Java that returns a response based on a given key?
So it would be a simple program, that stores a hashmap and returns the result based on a key provided by the client.
What would be the fasted implementation, to have it over HTTP or a socket? The client will be a web based application.
I read a lot of blogs and see people all the time talking about bad things in the java programming language; a lot of them are about annotations and generics that were added to the language in 1.5 release. What are the things in the language or the API that you don't like or would design differently?
I have a big program in Java that uses multithreading. In some cases, the program starts using 100% of three cores of my eight core system. In normal use, the program use all cores at 1-2%. How can I find the class that's overloading cores?
I want to write a socket channel program using which I can send a file from the client program to the server program. I want to create this program using Java.
Is there any other on-line help is available
So how to overcome this problem.
Thanks
Sunil Kumar Sahoo
Do you know a good guide for Java, such as "dive into python" for python?
If I searched google I expect I would find tons of random guides, but trying them all until I found a good one could take ages... that's why I am asking: do you already know one in particular? one you KNOW is good?
I already know C, PHP and a bit of Python, if that matters.
Hi
I am noob to parsers.I like to fetch specific data from a website I need to use parsers for that. Can anybody please tel me how to get started with parsers.What do I need to download?
Can anybody the code to fetch the data from a website using parsers in java.
Thanks in advance.
I have a neural network written in Java which uses a sigmoid transfer function defined as follows:
private static double sigmoid(double x)
{
return 1 / (1 + Math.exp(-x));
}
and this is called many times during training and computation using the network. Is there any way of speeding this up? It's not that it's slow, it's just that it is used a lot, so a small optimisation here would be a big overall gain.
I need to write a custom batch File renamer. I've got the bulk of it done except I can't figure out how to check if a file is already open. I'm just using the java.io.File package and there is a canWrite() method but that doesn't seem to test if the file is in use by another program. Any ideas on how I can make this work?
I use joomla to build php websites as it has logins , registrations and many extension to make my work easier.
IS some cms available for building webistes in java with some pre loaded features so that i don't have to code it from scratch
Possible Duplicate:
The Definitive C++ Book Guide and List
What is the best text book a beginner (non-CS major) can buy to master C++? And for Java?
Thanks
Is there a way to access the Java Plug-in Control Panel programatically? Or at least find the places in the Windows File System where the information backing that control panel is stored?
I have the following source code
public class mod_MyMod extends BaseMod
public String Version()
{
return "1.2_02";
}
public void AddRecipes(CraftingManager recipes)
{
recipes.addRecipe(new ItemStack(Item.diamond), new Object[] {
"#", Character.valueOf('#'), Block.dirt
});
}
When I try to compile it I get the following error:
java:11: reached end of file while parsing }
What am I doing wrong? Any help appreciated.
I am trying to parse a string which in JSON format only that keys are not enclosed in quotes. I can very well parse this string in Javascript, but can not find a Java API which will help me parse this. All the APIs I tried assumes strict JSON format.
Can anyone suggest a library which has an option to parse this, or a whole new approach to the problem (say like use regex instead) ?
As I remember there is a magic command line option in Java that turn on writing of operations that are currently executed to console. The output was looked like byte code. I do not mean -verbose, because it prints only class loading, while this option outputs information like memory allocation etc.