<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DZone Forums - Java</title>
		<link>http://forums.dzone.com</link>
		<description />
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 18:22:43 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.dzone.com/images/bluesaint/misc/rss.jpg</url>
			<title>DZone Forums - Java</title>
			<link>http://forums.dzone.com</link>
		</image>
		<item>
			<title>Not able to login with NTML Credentials</title>
			<link>http://forums.dzone.com/showthread.php?t=1953&amp;goto=newpost</link>
			<pubDate>Thu, 19 Nov 2009 16:33:27 GMT</pubDate>
			<description>I am trying to login to welcome page of sharepoint portal by below code. But I am not able to do that. Below is code what I am using. 
 
 
public...</description>
			<content:encoded><![CDATA[<div>I am trying to login to welcome page of sharepoint portal by below code. But I am not able to do that. Below is code what I am using.<br />
<br />
<br />
public class InteractiveAuthenticationExample { <br />
<br />
<br />
	public InteractiveAuthenticationExample() { <br />
		super(); <br />
	} <br />
<br />
	public static void main(String[] args) throws Exception { <br />
<br />
		InteractiveAuthenticationExample demo = new InteractiveAuthenticationExample(); <br />
		demo.doDemo(); <br />
	} <br />
<br />
	private void doDemo() throws IOException { <br />
<br />
		HttpClient client = new HttpClient();<br />
<br />
		client.getParams().setParameter(<br />
<br />
				CredentialsProvider.PROVIDER, new ConsoleAuthPrompter());<br />
<br />
		GetMethod httpget = new GetMethod(&quot;http://somesite/Page/Welcome.aspx&quot;);<br />
<br />
		httpget.setDoAuthentication(true);<br />
<br />
		try {<br />
<br />
			// execute the GET<br />
<br />
			int status = client.executeMethod(httpget);<br />
<br />
			// print the status and response<br />
<br />
			System.out.println(httpget.getStatusLine().toStrin  g());<br />
<br />
			System.out.println(httpget.getResponseBodyAsString  ());<br />
<br />
		} finally {<br />
<br />
			// release any connection resources used by the method<br />
<br />
			httpget.releaseConnection();<br />
<br />
		}<br />
<br />
<br />
	} <br />
<br />
	public class ConsoleAuthPrompter implements CredentialsProvider { <br />
<br />
		private BufferedReader in = null;  <br />
		public ConsoleAuthPrompter() { <br />
			super(); <br />
			this.in = new BufferedReader(new InputStreamReader(System.in)); <br />
		} <br />
<br />
		private String readConsole() throws IOException { <br />
			return this.in.readLine(); <br />
		} <br />
<br />
		public Credentials getCredentials( <br />
				final AuthScheme authscheme,  <br />
				final String host,  <br />
				int port,  <br />
				boolean proxy) <br />
		throws CredentialsNotAvailableException  <br />
		{ <br />
			if (authscheme == null) { <br />
				return null; <br />
			} <br />
			try{ <br />
<br />
				if (authscheme instanceof NTLMScheme) { <br />
					System.out.println(host + &quot;:&quot; + port + &quot; requires Windows authentication&quot;); <br />
					System.out.print(&quot;Enter domain: &quot;); <br />
					String domain = readConsole();    <br />
					System.out.print(&quot;Enter username: &quot;); <br />
					String user = readConsole();    <br />
					System.out.print(&quot;Enter password: &quot;); <br />
					String password = readConsole(); <br />
					return new NTCredentials(user, password, host, domain);     <br />
				} else <br />
					if (authscheme instanceof RFC2617Scheme) { <br />
						System.out.println(host + &quot;:&quot; + port + &quot; requires authentication with the realm '&quot;  <br />
								+ authscheme.getRealm() + &quot;'&quot;); <br />
						System.out.print(&quot;Enter username: &quot;); <br />
						String user = readConsole();    <br />
						System.out.print(&quot;Enter password: &quot;); <br />
						String password = readConsole(); <br />
						return new UsernamePasswordCredentials(user, password);     <br />
					} else { <br />
						throw new CredentialsNotAvailableException(&quot;Unsupported authentication scheme: &quot; + <br />
								authscheme.getSchemeName()); <br />
					} <br />
			} catch (IOException e) { <br />
				throw new CredentialsNotAvailableException(e.getMessage(), e); <br />
			} <br />
		} <br />
	} <br />
}</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>singhkanhaiya</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1953</guid>
		</item>
		<item>
			<title><![CDATA["install" java version in other folder]]></title>
			<link>http://forums.dzone.com/showthread.php?t=1945&amp;goto=newpost</link>
			<pubDate>Tue, 17 Nov 2009 20:39:30 GMT</pubDate>
			<description><![CDATA[:) Hi - this is my first post -  
I understand how to download Java JRE.  It runs very automatically.  However, as I am on a "protected" workstation...]]></description>
			<content:encoded><![CDATA[<div>:) Hi - this is my first post - <br />
I understand how to download Java JRE.  It runs very automatically.  However, as I am on a &quot;protected&quot; workstation and do not have admin rights to write to the &quot;Program Files/Java&quot; directory, I can not download and install Java versions there.  I do have permissions to write to other directories, like my &quot;My Documents&quot; and directories sub to this.  <br />
I would like to download different Java versions, in order to test each version with the combination of different software packages.  We have found that some software does not play nice with various Java versions, and I have the noble and novel assigment to test each of our software packs with each of the Java versions, from 5.1 thru 6.17 inclusive.  I can activate a Java version from the My Documents using Java Control Panel. (BTW, we have over 16,000 users that I am testing for, so it is not a wasted effort.)<br />
Is there a way to do this (download Java JREs and load into a directory other than &quot;Program Files/Java&quot;?   :)</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>baruchatta</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1945</guid>
		</item>
		<item>
			<title>Opportunity for Java Developers</title>
			<link>http://forums.dzone.com/showthread.php?t=1933&amp;goto=newpost</link>
			<pubDate>Sun, 15 Nov 2009 15:44:58 GMT</pubDate>
			<description>Greetings. 
 
We are an Indian Startup focussed on UI design looking for Java Developers to strengthen our technical support to our client Make a...</description>
			<content:encoded><![CDATA[<div>Greetings.<br />
<br />
We are an Indian Startup focussed on UI design looking for Java Developers to strengthen our technical support to our client <a href="http://www.rangde.org" target="_blank">Make a difference today</a>. Anyone interested is requested to forward your profile to <a href="mailto:careers@cheesecare.com">careers@cheesecare.com</a>. To know more about us please visit <a href="http://www.cheesecare.com" target="_blank">C h e e s e C o r p o r a t e C a r e</a>.<br />
<br />
Regards,<br />
<br />
Ayush</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>ayush39</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1933</guid>
		</item>
		<item>
			<title><![CDATA[Looking for mentors [in Conception and Hibernate]]]></title>
			<link>http://forums.dzone.com/showthread.php?t=1919&amp;goto=newpost</link>
			<pubDate>Thu, 12 Nov 2009 15:54:01 GMT</pubDate>
			<description><![CDATA[Hi Java experts, 
 
I'm a 25 years Belgian self made Java developper. Because I'm self made, I wanted to be an "official" developper so I have...]]></description>
			<content:encoded><![CDATA[<div>Hi Java experts,<br />
<br />
I'm a 25 years Belgian self made Java developper. Because I'm self made, I wanted to be an &quot;official&quot; developper so I have started evening courses.<br />
Now I'm in the last year and I have to do an app. I already have the subject and the technologies/frameworks : PostgreSQL, Java JSP/Servlet and Swing (Hibernate, Spring, Restlet).<br />
<br />
I have started this app since some month but I turn around because I want to make a good app but when I want to do womething I will google and read (too) much.<br />
So I need a/some mentor(s) to help me for designing my app and playing with hibernate.<br />
<br />
Is there some experienced Java developers on javalobby who can give me some times for anweri my questions and help me to make decisions ?<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>gervais.b</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1919</guid>
		</item>
		<item>
			<title>Retrieving double quotation marks from xml using java</title>
			<link>http://forums.dzone.com/showthread.php?t=1907&amp;goto=newpost</link>
			<pubDate>Tue, 10 Nov 2009 06:25:34 GMT</pubDate>
			<description>Hi, i am new to java and currently have this code and it does not seem able to retrieve information from twitters containing double quotations. It...</description>
			<content:encoded><![CDATA[<div>Hi, i am new to java and currently have this code and it does not seem able to retrieve information from twitters containing double quotations. It will cut off the remarks. Not sure how to include those comments in too. Can someone help? very urgent thanks<br />
<br />
Example: @something &quot; I need help!!&quot;<br />
<br />
the results returned is only: @something <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">XMLInputFactory inputFactory = XMLInputFactory.newInstance();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InputStream in = new URL(&quot;http://search.twitter.com/search.atom?q=&quot; + search + &quot;&amp;page=1&amp;rpp=100&quot;).openStream();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XMLEventReader eventReader = inputFactory.createXMLEventReader(in);<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boolean inEntry = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Item currentItem = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (eventReader.hasNext()) {&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  XMLEvent event = eventReader.nextEvent();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (event.isStartElement()) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  StartElement startElement = event.asStartElement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (event.asStartElement().getName().getLocalPart().equals(&quot;title&quot;)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  event = eventReader.nextEvent();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  String title = event.asCharacters().getData();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!inEntry) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  channel.setTitle(title);//false<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  currentItem.setTitle(title);//true<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  continue;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>fireportal</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1907</guid>
		</item>
		<item>
			<title>Can you??</title>
			<link>http://forums.dzone.com/showthread.php?t=1887&amp;goto=newpost</link>
			<pubDate>Wed, 04 Nov 2009 16:41:24 GMT</pubDate>
			<description>hi guys.. 
my name is Nazih and I study java 
I was work on C++ but not for an advanced level 
so I want to get Advance level in JAVA now 
and any...</description>
			<content:encoded><![CDATA[<div>hi guys..<br />
my name is Nazih and I study java<br />
I was work on C++ but not for an advanced level<br />
so I want to get Advance level in JAVA now<br />
and any one can help me, I respect him<br />
so I need every comment of you<br />
and I'll show you every time where I'm in Java<br />
<br />
<br />
thank you,</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>darkstarmr</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1887</guid>
		</item>
		<item>
			<title>Javafx use jmf and capture audio device</title>
			<link>http://forums.dzone.com/showthread.php?t=1883&amp;goto=newpost</link>
			<pubDate>Mon, 02 Nov 2009 16:27:56 GMT</pubDate>
			<description>Hello, I noticed a problem with the use JavaFX and Java Media Framework (JMF), in a project javafx call Java classes using JMF, but are not...</description>
			<content:encoded><![CDATA[<div>Hello, I noticed a problem with the use JavaFX and Java Media Framework (JMF), in a project javafx call Java classes using JMF, but are not recognized PC audio devices, in fact when I executed 's the code CaptureDeviceManager.getDeviceList (null) displays the error &quot;could not commit protocolPRefixList&quot;, without recognizing any audio device. Instead I call if my application using JMF, outside of a JavaFX project, the devices are found and everything works properly, perhaps this problem depends on the security settings of JavaFX, or inability to use JavaFX is that jmf interfaces with audio and video devices?<br />
<br />
thanks for the help</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>terxzyf</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1883</guid>
		</item>
		<item>
			<title>Jni dll hell</title>
			<link>http://forums.dzone.com/showthread.php?t=1881&amp;goto=newpost</link>
			<pubDate>Mon, 02 Nov 2009 12:56:29 GMT</pubDate>
			<description><![CDATA[Unable to load native library: Can't find dependent libraries 
 
I tried to run the sample project with Caffeine (Java-.NET interop framework). I was...]]></description>
			<content:encoded><![CDATA[<div>Unable to load native library: Can't find dependent libraries<br />
<br />
I tried to run the sample project with Caffeine (Java-.NET interop framework). I was constantly getting an error „unable to find dependent libraries“ when the execution was about to load the JVM.<br />
<br />
The dependency walker shows that jvm.dll is missing a function in mpr.dll (similar to dwmapi.dll problem frequently mentioned on the internet). Is it that loading jvm.dll forces loading of all dependent dlls, not using delayload-ing?<br />
<br />
Or am I doing something wrong? I tried to run JNI as a simple native C++ project as well but I had the same problem.<br />
<br />
Thanks a lot!<br />
<br />
Artur</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>artur</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1881</guid>
		</item>
		<item>
			<title>Jars deleted after app error in execution.</title>
			<link>http://forums.dzone.com/showthread.php?t=1871&amp;goto=newpost</link>
			<pubDate>Wed, 28 Oct 2009 13:03:41 GMT</pubDate>
			<description>I have an applicacion running as a service in Win XP, when the app has an error this terminate te process, but when I try to run again I found that...</description>
			<content:encoded><![CDATA[<div>I have an applicacion running as a service in Win XP, when the app has an error this terminate te process, but when I try to run again I found that some jars files are deleted from classpath folder.<br />
I have heard that windows system deleted that jar when some kind of error in app don´t be killed, something like that.<br />
<br />
Well, I need more information and how, if you know, resolve that problem.<br />
<br />
PD: sorry for my english. :cool:</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>fhbustos@gmail.com</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1871</guid>
		</item>
		<item>
			<title>Forum Nokia is Inviting Developers</title>
			<link>http://forums.dzone.com/showthread.php?t=1863&amp;goto=newpost</link>
			<pubDate>Tue, 27 Oct 2009 10:03:24 GMT</pubDate>
			<description>Guys, Herez a great opportunity for Developers in India. Forum Nokia is organising a Developer Conference at Banglore, India on 7th December.They are...</description>
			<content:encoded><![CDATA[<div>Guys, Herez a great opportunity for Developers in India. Forum Nokia is organising a Developer Conference at Banglore, India on 7th December.They are also offering a great chance for developers to display their Apps to Mobile Application Developers from across India during the conference. Just check out the details at nokiadevcon.in!!<br />
<br />
Cheers:)</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=15">Java</category>
			<dc:creator>derrik</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1863</guid>
		</item>
	</channel>
</rss>
