<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Java Developer Forum - All Forums]]></title>
		<link>http://forum.javaorigin.com/</link>
		<description><![CDATA[Java Developer Forum - http://forum.javaorigin.com]]></description>
		<pubDate>Tue, 06 Jan 2009 01:02:55 -0500</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[SCBCD 5.0 Links]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=14</link>
			<pubDate>Mon, 01 Sep 2008 13:47:54 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=14</guid>
			<description><![CDATA[http://sunbcd5.blogspot.com/2006/12/usef...ee-15.html<br />
<br />
http://java.boot.by/scbcd5-guide/index.html<br />
<br />
http://jokondo.wordpress.com/2007/04/16/link-for-scbcd-5-ejb-3-exam-preparation/<br />
<br />
http://nycjava.net/JSPWiki/Wiki.jsp?page..._Section_1]]></description>
			<content:encoded><![CDATA[http://sunbcd5.blogspot.com/2006/12/usef...ee-15.html<br />
<br />
http://java.boot.by/scbcd5-guide/index.html<br />
<br />
http://jokondo.wordpress.com/2007/04/16/link-for-scbcd-5-ejb-3-exam-preparation/<br />
<br />
http://nycjava.net/JSPWiki/Wiki.jsp?page..._Section_1]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[EJB vs Hibernate]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=13</link>
			<pubDate>Fri, 04 Apr 2008 13:34:40 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=13</guid>
			<description><![CDATA[Hi<br />
<br />
 I am new to Hibernate and ejb . so please any one explain  EJB vs Hibernate<br />
<br />
Thank you]]></description>
			<content:encoded><![CDATA[Hi<br />
<br />
 I am new to Hibernate and ejb . so please any one explain  EJB vs Hibernate<br />
<br />
Thank you]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Setting Environment variables]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=12</link>
			<pubDate>Tue, 25 Mar 2008 09:19:10 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=12</guid>
			<description><![CDATA[Hi all,<br />
<br />
We are using JNI (Java and C++). A method is in java calls the C++ api’s using JNI .<br />
<br />
 <br />
<br />
This native method is using an environment variable which needs to be set programmatically. Please help me out how can is set the env variable and where to set ,I am using windows and AIX environment<br />
<br />
Regards,<br />
Krishna]]></description>
			<content:encoded><![CDATA[Hi all,<br />
<br />
We are using JNI (Java and C++). A method is in java calls the C++ api’s using JNI .<br />
<br />
 <br />
<br />
This native method is using an environment variable which needs to be set programmatically. Please help me out how can is set the env variable and where to set ,I am using windows and AIX environment<br />
<br />
Regards,<br />
Krishna]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[webapplications using ant]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=11</link>
			<pubDate>Mon, 25 Feb 2008 02:05:37 -0500</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=11</guid>
			<description><![CDATA[Hi GoodMorning<br />
I want work with webapplications using ant tool<br />
any body tell the configuration setting i.e,installationa nd classpath settings etc  in ant]]></description>
			<content:encoded><![CDATA[Hi GoodMorning<br />
I want work with webapplications using ant tool<br />
any body tell the configuration setting i.e,installationa nd classpath settings etc  in ant]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PLs Help me dlink ip cam(dcs-900g &#x26; dcs-5220)]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=10</link>
			<pubDate>Wed, 13 Feb 2008 01:17:41 -0500</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=10</guid>
			<description><![CDATA[i have code<br />
<br />
<br />
import java.net.*;<br />
import com.sun.image.codec.jpeg.*;<br />
import java.io.*;<br />
import java.awt.*;<br />
import java.awt.event.*;<br />
import java.awt.image.*;<br />
import javax.swing.*;<br />
<br />
<br />
public class AxisCamera extends JPanel implements Runnable {<br />
public boolean useMJPGStream = true; //still image set to false<br />
//streaming set to true<br />
public String jpgURL="http://ip-address/cgi-bin/video.jpg";<br />
//http://152.226.142.2/mpg/video.mpg<br />
public String mjpgURL="http://ip-address/cgi-bin/video.cgi";<br />
DataInputStream dis;<br />
private BufferedImage image=null;<br />
int counter=0;<br />
<br />
public Dimension imageSize = null;<br />
public boolean connected = false;<br />
private boolean initCompleted = false;<br />
HttpURLConnection huc=null;<br />
Component parent;<br />
<br />
/** Creates a new instance of AxisCamera */<br />
public AxisCamera(Component parent_) {<br />
parent = parent_;<br />
}<br />
<br />
public static Image getScaledInstanceAWT(BufferedImage source, double factor) {<br />
int w = (int) (source.getWidth() * factor);<br />
int h = (int) (source.getHeight() * factor);<br />
return source.getScaledInstance(w, h, Image.SCALE_SMOOTH);<br />
}<br />
<br />
public static BufferedImage toBufferedImage(Image image) {<br />
new ImageIcon(image); //load image<br />
int w = image.getWidth(null);<br />
int h = image.getHeight(null);<br />
BufferedImage bimage = new BufferedImage(w, h, BufferedImage.TYPE_BYTE_INDEXED);<br />
//BufferedImage bimage = getDefaultConfiguration().createCompatibleImage(w, h, Transparency.OPAQUE);<br />
Graphics2D g = bimage.createGraphics();<br />
g.drawImage(image, 0, 0, null);<br />
g.dispose();<br />
return bimage;<br />
}<br />
<br />
public void connect(){<br />
try{<br />
URL u = new URL(useMJPGStream?mjpgURL:jpgURL);<br />
huc = (HttpURLConnection) u.openConnection();<br />
//System.out.println(huc.getContentType());<br />
InputStream is = huc.getInputStream();<br />
connected = true;<br />
BufferedInputStream bis = new BufferedInputStream(is);<br />
dis= new DataInputStream(bis);<br />
if (!initCompleted) initDisplay();<br />
}catch(IOException e){ //incase no connection exists wait and try again, instead of printing the error<br />
try{<br />
huc.disconnect();<br />
Thread.sleep(30);<br />
}catch(InterruptedException ie){huc.disconnect();connect();}<br />
connect();<br />
}catch(Exception e){;}<br />
}<br />
<br />
public void initDisplay(){ //setup the display<br />
if (useMJPGStream)readMJPGStream();<br />
else {readJPG();disconnect();}<br />
imageSize = new Dimension(image.getWidth(this), image.getHeight(this));<br />
setPreferredSize(imageSize);<br />
parent.setSize(imageSize);<br />
parent.validate();<br />
initCompleted = true;<br />
}<br />
<br />
public void disconnect(){<br />
try{<br />
if(connected){<br />
dis.close();<br />
connected = false;<br />
}<br />
}catch(Exception e){;}<br />
}<br />
<br />
public void paint(Graphics g) { //used to set the image on the panel<br />
if (image != null)<br />
g.drawImage(image, 0, 0, this);<br />
}<br />
<br />
public void readStream(){ //the basic method to continuously read the stream<br />
try{<br />
if (useMJPGStream){<br />
while(true){<br />
readMJPGStream();<br />
parent.repaint();<br />
}<br />
}<br />
else{<br />
while(true){<br />
connect();<br />
readJPG();<br />
parent.repaint();<br />
disconnect();<br />
<br />
}<br />
}<br />
<br />
}catch(Exception e){;}<br />
}<br />
<br />
<br />
public void readMJPGStream(){ //preprocess the mjpg stream to remove the mjpg encapsulation<br />
readLine(4,dis); //discard the first 3 lines<br />
readJPG();<br />
readLine(1,dis); //discard the last two lines<br />
}<br />
<br />
public void readJPG(){ //read the embedded jpeg image<br />
try{<br />
JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(dis);<br />
image = decoder.decodeAsBufferedImage();<br />
<br />
String s="a"+counter+".jpg";<br />
counter++;<br />
String filename="c:\\find\\"+s;<br />
BufferedImage smaller = toBufferedImage(getScaledInstanceAWT(image, 1.0/3.0));//scalling image size<br />
<br />
try {<br />
OutputStream out = new FileOutputStream(filename);<br />
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);<br />
encoder.encode(smaller);<br />
out.close();<br />
} catch (Exception e) {<br />
System.out.println(e);<br />
}<br />
<br />
}catch(Exception e){e.printStackTrace();disconnect();}<br />
}<br />
<br />
public void readLine(int n, DataInputStream dis){ //used to strip out the header lines<br />
for (int i=0; i]]></description>
			<content:encoded><![CDATA[i have code<br />
<br />
<br />
import java.net.*;<br />
import com.sun.image.codec.jpeg.*;<br />
import java.io.*;<br />
import java.awt.*;<br />
import java.awt.event.*;<br />
import java.awt.image.*;<br />
import javax.swing.*;<br />
<br />
<br />
public class AxisCamera extends JPanel implements Runnable {<br />
public boolean useMJPGStream = true; //still image set to false<br />
//streaming set to true<br />
public String jpgURL="http://ip-address/cgi-bin/video.jpg";<br />
//http://152.226.142.2/mpg/video.mpg<br />
public String mjpgURL="http://ip-address/cgi-bin/video.cgi";<br />
DataInputStream dis;<br />
private BufferedImage image=null;<br />
int counter=0;<br />
<br />
public Dimension imageSize = null;<br />
public boolean connected = false;<br />
private boolean initCompleted = false;<br />
HttpURLConnection huc=null;<br />
Component parent;<br />
<br />
/** Creates a new instance of AxisCamera */<br />
public AxisCamera(Component parent_) {<br />
parent = parent_;<br />
}<br />
<br />
public static Image getScaledInstanceAWT(BufferedImage source, double factor) {<br />
int w = (int) (source.getWidth() * factor);<br />
int h = (int) (source.getHeight() * factor);<br />
return source.getScaledInstance(w, h, Image.SCALE_SMOOTH);<br />
}<br />
<br />
public static BufferedImage toBufferedImage(Image image) {<br />
new ImageIcon(image); //load image<br />
int w = image.getWidth(null);<br />
int h = image.getHeight(null);<br />
BufferedImage bimage = new BufferedImage(w, h, BufferedImage.TYPE_BYTE_INDEXED);<br />
//BufferedImage bimage = getDefaultConfiguration().createCompatibleImage(w, h, Transparency.OPAQUE);<br />
Graphics2D g = bimage.createGraphics();<br />
g.drawImage(image, 0, 0, null);<br />
g.dispose();<br />
return bimage;<br />
}<br />
<br />
public void connect(){<br />
try{<br />
URL u = new URL(useMJPGStream?mjpgURL:jpgURL);<br />
huc = (HttpURLConnection) u.openConnection();<br />
//System.out.println(huc.getContentType());<br />
InputStream is = huc.getInputStream();<br />
connected = true;<br />
BufferedInputStream bis = new BufferedInputStream(is);<br />
dis= new DataInputStream(bis);<br />
if (!initCompleted) initDisplay();<br />
}catch(IOException e){ //incase no connection exists wait and try again, instead of printing the error<br />
try{<br />
huc.disconnect();<br />
Thread.sleep(30);<br />
}catch(InterruptedException ie){huc.disconnect();connect();}<br />
connect();<br />
}catch(Exception e){;}<br />
}<br />
<br />
public void initDisplay(){ //setup the display<br />
if (useMJPGStream)readMJPGStream();<br />
else {readJPG();disconnect();}<br />
imageSize = new Dimension(image.getWidth(this), image.getHeight(this));<br />
setPreferredSize(imageSize);<br />
parent.setSize(imageSize);<br />
parent.validate();<br />
initCompleted = true;<br />
}<br />
<br />
public void disconnect(){<br />
try{<br />
if(connected){<br />
dis.close();<br />
connected = false;<br />
}<br />
}catch(Exception e){;}<br />
}<br />
<br />
public void paint(Graphics g) { //used to set the image on the panel<br />
if (image != null)<br />
g.drawImage(image, 0, 0, this);<br />
}<br />
<br />
public void readStream(){ //the basic method to continuously read the stream<br />
try{<br />
if (useMJPGStream){<br />
while(true){<br />
readMJPGStream();<br />
parent.repaint();<br />
}<br />
}<br />
else{<br />
while(true){<br />
connect();<br />
readJPG();<br />
parent.repaint();<br />
disconnect();<br />
<br />
}<br />
}<br />
<br />
}catch(Exception e){;}<br />
}<br />
<br />
<br />
public void readMJPGStream(){ //preprocess the mjpg stream to remove the mjpg encapsulation<br />
readLine(4,dis); //discard the first 3 lines<br />
readJPG();<br />
readLine(1,dis); //discard the last two lines<br />
}<br />
<br />
public void readJPG(){ //read the embedded jpeg image<br />
try{<br />
JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(dis);<br />
image = decoder.decodeAsBufferedImage();<br />
<br />
String s="a"+counter+".jpg";<br />
counter++;<br />
String filename="c:\\find\\"+s;<br />
BufferedImage smaller = toBufferedImage(getScaledInstanceAWT(image, 1.0/3.0));//scalling image size<br />
<br />
try {<br />
OutputStream out = new FileOutputStream(filename);<br />
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);<br />
encoder.encode(smaller);<br />
out.close();<br />
} catch (Exception e) {<br />
System.out.println(e);<br />
}<br />
<br />
}catch(Exception e){e.printStackTrace();disconnect();}<br />
}<br />
<br />
public void readLine(int n, DataInputStream dis){ //used to strip out the header lines<br />
for (int i=0; i]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[video from dlink (dcs-5200) ip-cam in jmf]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=9</link>
			<pubDate>Tue, 12 Feb 2008 23:37:55 -0500</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=9</guid>
			<description><![CDATA[hi <br />
i m using dcs-5200 & dcs-900g <br />
how can i get live video from these two ip camera in jmf application<br />
pls help me<br />
 post code on <br />
pravinkharche@gmail.com]]></description>
			<content:encoded><![CDATA[hi <br />
i m using dcs-5200 & dcs-900g <br />
how can i get live video from these two ip camera in jmf application<br />
pls help me<br />
 post code on <br />
pravinkharche@gmail.com]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Video Streaming]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=8</link>
			<pubDate>Tue, 04 Sep 2007 04:05:20 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=8</guid>
			<description><![CDATA[hi. how about video streaming from pc to mobile phone? using mobile emulator sony ericsson for this case. rtsp or http.<br />
<br />
 help will be appriciated. thanks.]]></description>
			<content:encoded><![CDATA[hi. how about video streaming from pc to mobile phone? using mobile emulator sony ericsson for this case. rtsp or http.<br />
<br />
 help will be appriciated. thanks.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[New to JMF]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=7</link>
			<pubDate>Wed, 15 Aug 2007 22:29:54 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=7</guid>
			<description><![CDATA[Hi. im new to JMF. im doing a project on video streaming. I know that JMF is used to capture video and audio. Im just wondering wheter its possible to use IP camera with JMF to capture video and audio cos thats basically whats my project about.<br />
<br />
or if you can suggest any solutions on capturing video and audio saved in meg4 format from an IP camera(axis 211A).<br />
<br />
i really need help. thanks.<br />
<br />
regards.<br />
<br />
firdaus<br />
bro_firdaus212706@msn.com]]></description>
			<content:encoded><![CDATA[Hi. im new to JMF. im doing a project on video streaming. I know that JMF is used to capture video and audio. Im just wondering wheter its possible to use IP camera with JMF to capture video and audio cos thats basically whats my project about.<br />
<br />
or if you can suggest any solutions on capturing video and audio saved in meg4 format from an IP camera(axis 211A).<br />
<br />
i really need help. thanks.<br />
<br />
regards.<br />
<br />
firdaus<br />
bro_firdaus212706@msn.com]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[java.sql.SQLException: Data truncated for column 'cName' at row 1]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=6</link>
			<pubDate>Wed, 08 Aug 2007 10:05:06 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=6</guid>
			<description><![CDATA[my database is mysql.<br />
while i try to inserting  data .i found following sql exception <br />
<br />
java.sql.SQLException: Data truncated for column 'cName' at row 1 <br />
<br />
please any one know about this exception]]></description>
			<content:encoded><![CDATA[my database is mysql.<br />
while i try to inserting  data .i found following sql exception <br />
<br />
java.sql.SQLException: Data truncated for column 'cName' at row 1 <br />
<br />
please any one know about this exception]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to set the Java classpath]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=5</link>
			<pubDate>Fri, 03 Aug 2007 05:00:24 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=5</guid>
			<description><![CDATA[Hi <br />
<br />
  I am new in java . so please help me how to set java classpath]]></description>
			<content:encoded><![CDATA[Hi <br />
<br />
  I am new in java . so please help me how to set java classpath]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[java.lang.OutOfMemoryError with java vector]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=4</link>
			<pubDate>Fri, 03 Aug 2007 04:49:39 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=4</guid>
			<description><![CDATA[I am using Java Vector. when I give  big file to input, there is an exception occurred "java.lang.OutOfMemoryError" .  How can solve this problem]]></description>
			<content:encoded><![CDATA[I am using Java Vector. when I give  big file to input, there is an exception occurred "java.lang.OutOfMemoryError" .  How can solve this problem]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[java.lang.NoClassDefFound Exception]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=3</link>
			<pubDate>Wed, 25 Jul 2007 09:22:17 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=3</guid>
			<description><![CDATA[Hi<br />
<br />
   when i am try to running my HelloWorld.java program I am getting java.lang.NoClassDefFound error .how to solve this problem]]></description>
			<content:encoded><![CDATA[Hi<br />
<br />
   when i am try to running my HelloWorld.java program I am getting java.lang.NoClassDefFound error .how to solve this problem]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Java.OutofMemory error]]></title>
			<link>http://forum.javaorigin.com/showthread.php?tid=2</link>
			<pubDate>Tue, 24 Jul 2007 08:13:10 -0400</pubDate>
			<guid isPermaLink="false">http://forum.javaorigin.com/showthread.php?tid=2</guid>
			<description><![CDATA[hi <br />
<br />
 i got Java.OutofMemory exception . How to solve this error?<br />
<br />
<br />
Thanks <br />
Arunkumar]]></description>
			<content:encoded><![CDATA[hi <br />
<br />
 i got Java.OutofMemory exception . How to solve this error?<br />
<br />
<br />
Thanks <br />
Arunkumar]]></content:encoded>
		</item>
	</channel>
</rss>