Questions tagged [java-server]

DO NOT USE THIS TAG! "Java Server" is an incomplete term and makes therefore no sense as a tag and should be banned. Click "info" for alternate tags you're probably looking for.

If you mean Java Server Faces, use .

If you mean Java Server Pages, use .

If you mean a certain Java (EE) server, use the tag resembling the server name such as , , , , etc.

If you mean Java EE in general, use .

If you mean to write a homegrown "server" in plain Java SE, use , perhaps along with the desired communication protocol, such as .

192 questions
53
votes
6 answers

Can program developed with Java 8 be run on Java 7?

I am a little confused. Oracle says Java 8 is highly compatible with Java 7 (backward). But, what possibilities exist that Java 8 program can be run on Java 7 successfully (SE/EE)? If point one was true, Java 8 applications will be deployed and…
Mitsu Garcia
  • 593
  • 2
  • 5
  • 7
18
votes
4 answers

Jboss only works on localhost:8080 ,but doesnt reply when called by ip

I installed JBoss 5.0.1 and ran it , but when i called it from the same computer on localhost:8080 it works but when i call it from other computer it doesnt work at all using the computer IP ... when i had tomcat it used to work on both.so Does…
Farajnew
  • 181
  • 1
  • 1
  • 3
15
votes
1 answer

what is JSON REST interface

Is there any tutorial on JSON RESTful interface (using JAVA servlet) ? The purpose is to call to external REST interface for data, and handle the data by the client(javascript client). I am not sure what kind of thing is exactly JSON REST interface…
Mellon
  • 37,586
  • 78
  • 186
  • 264
12
votes
3 answers

Heroku Websockets with Java ECONNREFUSED (Connection refused)

I am writing a small game server using Java. I use TooTallNate-Java-Websockets library to create my websocket server. Everything works when I run my server on localhost , I can connect to it from everywhere.However when I submit my app to Heroku ,…
Ivelius
  • 4,953
  • 7
  • 30
  • 54
10
votes
1 answer

Java server and socket.io

Are there any examples(ready scripts) to connect to java server with socket.io library? My problem: I have a server that works on java (proceed some data from clients) and a java client that is always connected to server (server is to be informed…
user1081056
  • 533
  • 2
  • 4
  • 15
10
votes
5 answers

Java: Simple HTTP Server application that responds in JSON

I want to create a very simple HTTP server application in Java. For example, if I run the server on localhost in port 8080, and I make to following call from my browser, I want to get a Json array with the string 'hello…
SomethingSomething
  • 11,491
  • 17
  • 68
  • 126
6
votes
5 answers

http server in php

I want to create http socket connection for server in php for multiple client . how can I do that ? I need some resource . First I was trying to create server in java .I create a server in java . And trying to reach from android application .But…
Diptopol Dam
  • 823
  • 1
  • 10
  • 39
6
votes
1 answer

Reproduce tcp CLOSE_WAIT state with java client/server

Is there an easy way to reproduce the tcp CLOSE_WAIT state with a java program? I have a legacy java application that have this problem and I'd like to be able to reproduce it so that i can test my fix. Thanks
Jeff
  • 979
  • 3
  • 10
  • 18
5
votes
3 answers

Server VM needed but not available in JRE. Then what package do I need: JRE, JDK?

This is the context: I've just developed an app that needs to be launched in SERVER mode (java -server). I'm using the JSE SDK (JDK) and I have no problems to run the app because the JDK has the Server VM. Now, I'm trying to create an installer that…
testk
  • 147
  • 2
  • 7
5
votes
3 answers

How to read from socket using datainputstream

I can display a single image received, but now I want to receive and write multiple images on my disk which will be sent from Android client after every 5 seconds. Socket sock = servsock.accept(); dataInputStream = new…
Wajih Ahmed
  • 99
  • 1
  • 2
  • 7
5
votes
3 answers

Java server works in 32-bit, but not in 64-bit. Why?

I get this strange exception on only when running on 64 bit (windows 7 ultimate) Not when running 32 bit win7 ultimate. Currently its running on java version 1.6.0_26 running server! java.net.SocketException: select failed at…
4
votes
1 answer

how to take sample image frame from youtube video and use it as a background?

I made this project http://tinyurl.com/nowimlisteningto . This is a website that plays Youtube videos as a playlist. one after the other. I want to make my site visually nicer and was thinking of changing the background image of the site to a sample…
Vandervidi
  • 295
  • 1
  • 4
  • 11
4
votes
1 answer

High-load java server

I am making a multiplayer game. Now I am trying to choose the technology to connect the android devices to the server. The clients run on Android, and the game is MMORPG. I would like to write the server in java. Right now I have only 3 ideas for…
Artem Moskalev
  • 5,748
  • 11
  • 36
  • 55
4
votes
3 answers

HTTP Download From Java Server

I need to write a small java server that can be accessed through a web browser to download a file, preferably using sockets. Could anyone point me in the right direction as I can only find examples for the reverse (downloading from http using a java…
4
votes
2 answers

How do I connect an ActionScript 3 client to a Java server?

I'm thinking of making a 2D top-down MMO browser game. I want it to be a Flash game because that gives it a much larger target audience, but I also want to have real-time multiplayer action for which the speed of Java would help, and so am I right…
1
2 3
12 13