Java Applet HelloWorld "Getting Started With Applets" example not working
Hi there,
It's been ages since I ran my Linux CentOS boot of Linux but I am going through the official oracle java applet tutorials, just every time I try and run the "Hello World" applet in Firefox 17.0.3 and I am running the Iced Tea thing for java applets.
Every time I try and run the example from the following code:
import javax.swing.JApplet;
import javax.swing.SwingUtilities;
import javax.swing.JLabel;
public class HelloWorld extends JApplet
// called when the user enters the html page:
public void init() // keep apps within the init() function very small as per the http://docs.oracle.com/javase/tutorial/deployment/applet/appletMethods.html
try{
SwingUtilities.invokeAndWait(new Runnable()
public void run()
JLabel myLabel = new JLabel("Hello World");
add(myLabel);
} // end running the application
}); //end of swing invokeand wait
} catch (Exception error){ // end user running the app in page
// System.err.println("GUI didn't work on initial run");
}It keeps bringing up the error "Start: Applet not initialized" I did google that basic error and from what I found I should consult the JavaConsole, I know the console was removed from the Firefox menu quite a while ago. So went to find a way of loading it using the IcedTea one but it keeps bringing up a load of errors in even trying to run that.
Is there anyway of sorting this out? I mean I have even tried installing the one on the oracle website, the plain JDK but nothing seems to work.
Is there anyone that can help me get applets working? I was even going to go as far as to reinstall my distro but I want to avoid that as much as possible.
Thanks and I look forward to any replies,
Jeremy.
in the Getting Started with Java DB tutorial they
tell u how to set ur "DERBY_HOME" (what is that?).
once i press enter after typing this command:
set DERBY_HOME=D:\Java\Java
Phonebook\javadb in my command prompt do i get
any message or does it just go to the next line?type env or set or whatever in the command line to see what your environment variables are set to
they also tell u how to set ur "JAVA_HOME" (what is
that?). The Java installation you want to use
in their example they give u this: set
JAVA_HOME=C:\Program Files\Java\j2se1.4.2_05but in my java folder i have jdk1.6.0 and jre1.6.0
but no j2se1.4.2_05, so which 1 must i choose?It's up to you. I'd go with 1.6
also once ive done this: set
DERBY_HOME=D:\Java\Java Phonebook\javadb this
set JAVA_HOME=D:\Program
Files\Java\jre1.6.0 and this set
PATH=%DERBY_HOME%\bin;%PATH% and then type
sysinfo to verify that the variables were set
correctly i get these errors: 'D:\Java\Java' is
not recognized as an internal or external command,
operable program or batch file and '""'
is not recognized as an internal or external command,
operable program or batch file any help would
really be appreciated because this is really killing
me!you need to set your path variable - so something like:
set PATH=C:\Program Files\Java\j2se1.4.2_05\bin
Similar Messages
-
"Tutorial - Getting Started with JSF" does not work
I tried the "Tutorial - Getting Started with JSF" located on http://www.oracle.com/technology/obe/obe1013jdev/jsfintro/jsfintro.htm#t6, but the last part "Creating a conditional navigation" is not complete.
There are 2 issues
1. The return values in the code blocks in step 9 and 11 do not match with the given example code.
2. In step 12 I am missing the way to bind this message component to returned message from the login.
Could you please correct the code parts and add the message binding piece?
Thanks,
Aard JanI tried the "Tutorial - Getting Started with JSF" located on http://www.oracle.com/technology/obe/obe1013jdev/jsfintro/jsfintro.htm#t6, but the last part "Creating a conditional navigation" is not complete.
There are 2 issues
1. The return values in the code blocks in step 9 and 11 do not match with the given example code.
2. In step 12 I am missing the way to bind this message component to returned message from the login.
Could you please correct the code parts and add the message binding piece?
Thanks,
Aard Jan -
Ichat - getting started for first time NOT Working ..please help
I opened the Ichat application for th every first time today. When I open the app a box pops up and asks you to enter your user name and password and with which type of account you want to log in with, etc. First, I chose my mobile me account ( I also have a mac.com account and teh same thing I am going to describe happens with it as well for it is not an apple id dependent problem). I do so and click continue. The next screen comes up in the box and it is titled " encrypted ". Then in the box it says you are now ready to use ichat" . At the bottom of the box it says click done to begin using ichat.
Thus, is my problem. There is no "done" option to click on. The only button options to click on are: "learn more" , "go back" or "continue" . If I click "continue" nothing happens and I cannot do anything or begin using ichat. If I like "learn more" nothing happes at all - thus, the same result as clicking "continue". If I click back it will goto the previous screens but nothing changes.
Has anyone experienced this before? It seems strange and odd for an apple software to be so deleterious. How do i fix it so I can use iChat?
Any help is greatly appreciated. Thank you in advance. JennaHi
Welcome to the Discussions
Unfortunately although very rare some people do find that iChat does this.
Do this first.
Open your Home Folder (Little House icon)
Go to the Preferences Folder within and then find all the com.apple.iChat(xxx).plist items and delete them.
Try iChat again.
You should see several Start Up Screens.
1) A Welcome Screen.
2) A Valid AIM name (Includes options for MobileMe and @mac.com as well as AIM) plus confirming your Name (Your name maybe Prefilled from the Address Book)
3) the Bonjour Enable (or not) screen.
4) The Jabber option (Includes GoogleTalk) This Screen includes options to change Server Names and Ports under the text fields for the Jabber ID.
5) A Video Preview pane. (You can use this to take a Snapshot for your Buddy Pic)
6) a Details of Accounts you have set up screen.
7) the Done Screen.
More on this with Pictures here
If this does not work we may have to get you to Reinstall iChat.
How much work this entails depends how far your OS has been updated above the Install Disk Level.
Could you tell me what OS version the Install Disk is (What came on your Computer when new) ?
And what OS level you are currently using ?
7:23 PM Friday; December 3, 2010
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat" -
Getting started with an example
Hello all and thank you for reading.
I am looking at http://forums.adobe.com/thread/501053?tstart=0 as a starting point to get an idea of the possibilities with the osmf, and am having a bit of trouble. I have downloaded sprint8 and am coding in cs4. when i go to compile, i get an error about 'LoadableStateChangeEvent' which is indeed not found in the org.osmf.events package.
Has this been removed?
Thank you,
-NathanI have rewritten this example for sprint 8, any suggestions comments or corrections are appreciated:
package {
import flash.display.Sprite;
import org.osmf.events.LoadEvent;
import org.osmf.events.MediaError;
import org.osmf.events.MediaErrorEvent;
import org.osmf.events.MediaErrorCodes;
import org.osmf.events.MediaPlayerCapabilityChangeEvent;
import org.osmf.media.MediaPlayer;
import org.osmf.media.URLResource;
import org.osmf.net.NetLoader;
import org.osmf.traits.LoadState;
import org.osmf.traits.MediaTraitType;
import org.osmf.video.VideoElement;
import org.osmf.utils.URL;
public class OSMFExampleTwo extends Sprite {
//our local flv to be played
private const PROGRESSIVE:String = "trailer.flv"; //path to your progressive flv here
private var _player:MediaPlayer;
private var _video:VideoElement;
public function OSMFExampleTwo() {
trace("initialized");
//create a new media player
_player = new MediaPlayer();
_video = new VideoElement(new NetLoader(), new URLResource(new URL(PROGRESSIVE)));
//add an event listener to the video element to catch netstream failed errors
_video.addEventListener(MediaErrorEvent.MEDIA_ERROR, onLoadEvent);
//add an event listener so that when the player is capable of being viewed we can add it to the display list and watch
_player.addEventListener( MediaPlayerCapabilityChangeEvent.VIEWABLE_CHANGE, onViewable );
//add a new video element to the player
_player.element = _video;
//if the event fails - what comes through:
private function onLoadEvent( e:MediaErrorEvent) :void {
trace('ERROR (onLoadEvent): recieved a media error event');
var errorCode = e.error.errorCode;
switch (errorCode) {
case MediaErrorCodes.STREAM_NOT_FOUND:
trace('ERROR (onLoadEvent): there was an error finding the file that was specified');
break;
case MediaErrorCodes.PLAY_FAILED:
trace('ERROR (onLoadEvent): playback has failed');
break;
case MediaErrorCodes.NO_SUPPORTED_TRACK_FOUND:
trace('ERROR (onLoadEvent): there was no supported track found');
break;
case MediaErrorCodes.FILE_STRUCTURE_INVALID:
trace('ERROR (onLoadEvent): the file structure is invalid');
break;
private function onViewable( e:MediaPlayerCapabilityChangeEvent ) :void {
if( e.enabled ) {
addChild( _player.view );
trace('player view'); -
How can I get help with an app not working properly?
I just bought a 'learn Gujarati' app and the sound is so low I can hardly hear it even with the sound control on the iPad turned up as high as it would go. I have only had the iPad a few months - present from children, and I LOVE it and want to make most of it, thanks, Chrissy
FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
Phone: 800-275-2273 How to reach a live person: Press 0 four times
Hours of Operation: Mon-Fri: 9am-5pm ET
Email: [email protected]
How to report an issue with Your iTunes Store purchase
http://support.apple.com/kb/HT1933
How to Get a Refund from the App Store
http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
Canceling a Digital Subscription
http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
Cheers, Tom -
Can't seem to deploy EJB by following the 'Getting Started with WebGain Studio'
Hi ,
We're trying to evaluate the Weblogic 5.1 server with Webgain. We tried to
follow the 'Getting Started with Webgain'
example but when we tried to deploy the EJB it complained the error.
Attached is the log from the VisualCafe.
I need your help.
Thank you very much.
Quang.
VisualCafe (21:54:20): sj -sysclasspath
D:\VisualCafeEE\Bin\..\JAVA2\LIB\RT.JAR;D:\VisualCafeEE\Bin\..\JAVA2\LIB\TOO
LS.JAR -g -d
D:\WebGainStudio\Documentation\LibraryExample\BusinessLogic\Book\ -classpath
VisualCafe (21:54:20):
D:\WebGainStudio\Documentation\LibraryExample\BusinessLogic\Book\;d:\VisualC
afeEE\java2\lib\rt.jar;d:\VisualCafeEE\java2\lib\dt.jar;d:\VisualCafeEE\java
2\lib\i18n.jar;d:\VisualCafeEE\java2\lib\jaws.jar
VisualCafe (21:54:20):
;d:\VisualCafeEE\java2\lib\plugprov.jar;D:\VisualCafeEE\JAVA\LIB\;D:\VisualC
afeEE\JAVA\LIB\SYMCLASS.ZIP;D:\VisualCafeEE\JAVA\LIB\CLASSES.ZIP;D:\VisualCa
feEE\JFC\SWINGALL.JAR;D:\VisualCafeEE\swing-1.1\S
VisualCafe (21:54:20):
WINGALL.JAR;d:\weblogic\license\;d:\weblogic\mssqlserver4v70\classes\;D:\Vis
ualCafeEE\Bin\xutil.zip;D:\VisualCafeEE\Bin\Components\sfc.jar;D:\VisualCafe
EE\Bin\Components\symbeans.jar;D:\VisualCafeEE\Ja
VisualCafe (21:54:20):
va\Lib\eradtools.jar;D:\VisualCafeEE\Java\Lib\eradpublic.jar;D:\VisualCafeEE
\Java\Lib\dbaw.zip;D:\VisualCafeEE\Bin\Components\dbaw_awt.jar;D:\VisualCafe
EE\Bin\Components\databind.jar;D:\VisualCafeEE\Ja
VisualCafe (21:54:20):
va\Lib\Collections.zip;D:\VisualCafeEE\Java\Lib\icebrowserbean.jar;D:\Visual
CafeEE\Java\Lib\servlet.jar;D:\VisualCafeEE\Java\Lib\webserver.jar;D:\Visual
CafeEE\Java\Lib\jspengine.jar;D:\VisualCafeEE\Jav
VisualCafe (21:54:20):
a\Lib\xml.jar;D:\VisualCafeEE\Java\Lib\symtools.jar;D:\VisualCafeEE\Bin\Comp
onents\templates.jar;D:\VisualCafeEE\Bin\Components\vcejbwl.jar;D:\VisualCaf
eEE\Java\Lib\javax_ejb.zip;D:\VisualCafeEE\Java\L
VisualCafe (21:54:20):
ib\JNDI.JAR;D:\VisualCafeEE\Java\Lib\jts.zip;D:\VisualCafeEE\Java\Lib\jdbc2_
0-stdext.jar;D:\VisualCafeEE\Bin\sb\;D:\VisualCafeEE\Bin\sb\classes\sb.jar;D
:\VisualCafeEE\Bin\Components\DreamweaverPlugin.j
VisualCafe (21:54:20): ar;C:\Program Files\PhotoDeluxe
2.0\AdobeConnectables\;d:\weblogic\eval\cloudscape\lib\cloudscape.jar -make
-cdb BookEnterpriseBean.cdb
VisualCafe (21:54:20):
D:\WebGainStudio\Documentation\LibraryExample\BusinessLogic\Book\com\webgain
\library\book\ejb\BookEJB.java
VisualCafe (21:54:20):
D:\WebGainStudio\Documentation\LibraryExample\BusinessLogic\Book\com\webgain
\library\book\ejb\BookHome.java
VisualCafe (21:54:20):
D:\WebGainStudio\Documentation\LibraryExample\BusinessLogic\Book\com\webgain
\library\book\ejb\Book.java
VisualCafe (21:54:20):
D:\WebGainStudio\Documentation\LibraryExample\BusinessLogic\Book\com\webgain
\library\book\ejb\BookPK.java
VisualCafe (21:54:23): Build Successful
Internal VM (21:54:26): Starting deployment to WebLogic Server 5.1 ...
Internal VM (21:54:26): Building deployment descriptor...Created 4 DD files
Internal VM (21:54:26): Building generic JAR file...Created file
D:\WebGainStudio\Documentation\LibraryExample\BusinessLogic\Book\BookEnterpr
iseBean.jar
Internal VM (21:54:26): Processing Jar...
Internal VM (21:54:26): D:\VisualCafeEE\java\bin\..\bin\java.exe -classpath
Internal VM (21:54:26):
"d:\weblogic\lib\weblogic511sp.jar;d:\weblogic\lib\weblogic510sp2.jar;d:\web
logic\lib\weblogic510sp1.jar;d:\weblogic\classes;d:\weblogic\lib\weblogicaux
.jar;D:\VisualCafeEE\JAVA\LIB\;D:\VisualCafeEE\JA
Internal VM (21:54:26):
VA\LIB\SYMCLASS.ZIP;D:\VisualCafeEE\JAVA\LIB\CLASSES.ZIP;D:\VisualCafeEE\JFC
\SWINGALL.JAR;D:\VisualCafeEE\swing-1.1\SWINGALL.JAR;.\;d:\weblogic\license\
;d:\weblogic\mssqlserver4v70\classes\;D:\VisualCa
Internal VM (21:54:26):
feEE\Bin\xutil.zip;D:\VisualCafeEE\Bin\Components\sfc.jar;D:\VisualCafeEE\Bi
n\Components\symbeans.jar;D:\VisualCafeEE\Java\Lib\eradtools.jar;D:\VisualCa
feEE\Java\Lib\eradpublic.jar;D:\VisualCafeEE\Java
Internal VM (21:54:26):
\Lib\dbaw.zip;D:\VisualCafeEE\Bin\Components\dbaw_awt.jar;D:\VisualCafeEE\Bi
n\Components\databind.jar;D:\VisualCafeEE\Java\Lib\Collections.zip;D:\Visual
CafeEE\Java\Lib\icebrowserbean.jar;D:\VisualCafeE
Internal VM (21:54:26):
E\Java\Lib\servlet.jar;D:\VisualCafeEE\Java\Lib\webserver.jar;D:\VisualCafeE
E\Java\Lib\jspengine.jar;D:\VisualCafeEE\Java\Lib\xml.jar;D:\VisualCafeEE\Ja
va\Lib\symtools.jar;D:\VisualCafeEE\Bin\Component
Internal VM (21:54:26):
s\templates.jar;D:\VisualCafeEE\Bin\Components\vcejbwl.jar;D:\VisualCafeEE\J
ava\Lib\javax_ejb.zip;D:\VisualCafeEE\Java\Lib\JNDI.JAR;D:\VisualCafeEE\Java
\Lib\jts.zip;D:\VisualCafeEE\Java\Lib\jdbc2_0-std
Internal VM (21:54:26):
ext.jar;D:\VisualCafeEE\Bin\sb\;D:\VisualCafeEE\Bin\sb\classes\sb.jar;D:\Vis
ualCafeEE\Bin\Components\DreamweaverPlugin.jar;C:\Program Files\PhotoDeluxe
Internal VM (21:54:26):
2.0\AdobeConnectables\;d:\weblogic\eval\cloudscape\lib\cloudscape.jar"
Internal VM (21:54:26): weblogic.ejbc -compiler
d:\VisualCafeEE\java2\bin\javac.exe -classpath
Internal VM (21:54:26):
d:\weblogic\lib\weblogic511sp.jar;d:\weblogic\lib\weblogic510sp2.jar;d:\webl
ogic\lib\weblogic510sp1.jar;d:\weblogic\classes;d:\weblogic\lib\weblogicaux.
jar;d:\weblogic\lib\persistence\WebLogic_RDBMS.ja
Internal VM (21:54:26): r;ejbcgen;
D:\WebGainStudio\Documentation\LibraryExample\BusinessLogic\Book\_BookEnterp
riseBean.jar -d
D:\WebGainStudio\Documentation\LibraryExample\BusinessLogic\Book\BookEnterpr
iseBean.jar
Internal VM (21:55:04): WebGain Java! JustInTime Compiler Version
4.00.002(i) for JDK 1.1.x
Internal VM (21:55:04): Copyright (C) 2000 WebGain, Inc.
Internal VM (21:55:04):
Internal VM (21:55:04): . Jar Processing complete
Internal VM (21:55:04): Deploying JAR...Delivering enterprise bean to
WebLogic Server
Internal VM (21:55:07): Unable to move jar to WebLogic ServerWebGain Java!
JustInTime Compiler Version 4.00.002(i) for JDK 1.1.x
Internal VM (21:55:07): Copyright (C) 2000 WebGain, Inc.
Internal VM (21:55:07):
Internal VM (21:55:07): Usage: DeliverJar serverURL systemPassword
serverHome jarFileName
Internal VM (21:55:07):
Internal VM (21:55:07): Delivery Failed : WebGain Java! JustInTime Compiler
Version 4.00.002(i) for JDK 1.1.x
Internal VM (21:55:07): Copyright (C) 2000 WebGain, Inc.
Internal VM (21:55:07):
Internal VM (21:55:07): Usage: DeliverJar serverURL systemPassword
serverHome jarFileName
Internal VM (21:55:07):
Internal VM (21:55:07): Cleaning up...Completed.Yes I checked it. As far as I can see I did everything Apple said to do. I took some screen shot so you can see how the screens are connected and what and where the code is, and what it does when I drag the cancel and done bar buttons to the exit
-
Getting started with Java and XML
Hi,
Although I am pretty familiar with Java, I am a total newbie with using it to parse XML. I have been reading quite a few tutorials so am getting a good understanding of it and am thinking of using the DOM model for my purposes.
What I haven't been able to find, however, is how I can actually get started with this. I have tried compiling a few examples and have been getting errors such as:
xmltest.java package javax.xml.parsers does not exist
xmltest.java package org.w3c.dom does not existetc etc...
It looks like these packages don't come with J2SE. Can anyone confirm this? Do I need to download and install the Java Web Services Developer Pack to solve this problem?
Finally, I know I will need an XML parser but have read that JDK 1.4 has it's own parser (Crimson). Is this adequate for parsing XML files or will I also need a parser such as Xerces?
Thanks so much for any help!Hi DrClap,
Thanks for the reply. I have JDK 1.4.1_02 installed on my server but the following error keeps coming up when I try to run my example:
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/NodeAre there any further packages I need to download in order to run Java with XML? I have read some people install JAXP and XERCES... are these necessary for parsing an XML document or should J2SE 1.4.1 be sufficient?
Thanks for your help!
Jill -
We explored using sbRIO for our project, for different reasons we ended up going with a different embedded solution . We are currently evaluating the LabVIEW C Generator to convert some of the core analysis routines from LabVIEW to C so the team that will be creating the embedded solution don't have to re-implement them from scratch.
Before converting our code, I followed the instructions given in the "Getting Started with the NI LabVIEW C Generator" manual to create a static library created inCygwin using GNU Compiler Collection (GCC).
I managed to compile the code, but when I type "run GCD.exe" in the Cygwin console, I just see the window flash with no time to see if the result is correct or not. I modified the main.c cde to add a getchar(), but the window still just flashes and now I am left with the GCD process still running and have to kill it using Windows Task Manager.
Has anyone else got this example to run? I am sure I am missing an obvious setting or step, please help me.
More details below.
Thanks,
Fab
Here is a video showing the steps I followed
If you don't want/can't see the video. Here are some screenshots of what I have done so far:
GratestCommonDivisor.lvproj C Generation build specs Information:
C Function prototype definition:
I copied Makefile located at: C:\Program Files (x86)\National Instruments\LabVIEW 2011\examples\CGenerator\Tutorial\Cygwin
and replaced both Makefile and Makefile.cygwin in the directory where the C code was generated
I also copied main.c from the same location and replaced the one generated
Here is the snapshot of the results after executing "make GCD.exe"
Then to run it I just type
I see a window open and close really quickly and I never see the result. I have tried adding the getchar() line to the main.c file, but still I don't get to see the results.
Certified LabVIEW Architect * Certified Professional Instructor * LabVIEW ChampionHi Kevin,
I hope you had a good Thanksgiving. I am attaching a zip file with the LabVIEW project, my build specification and my version of "Greatest Common Divisor.vi", which should be the same as the one that you have that ships with the LabVIEW C Generator, but just in case. I am also attaching a zip file with the C files generated by the LabVIEW C Generator.
You can also see the video I posted earlier with the steps I followed. I hope you are able to point out where I went wrong.
Thanks,
Fab
Certified LabVIEW Architect * Certified Professional Instructor * LabVIEW Champion
Attachments:
GreatestCommonDivisor.zip 8 KB
CGen Files.zip 71 KB -
How can i get started with messaging in java
how can i get started with messaging in java
If you're talking about writing mail clients in java, you might want to start with a better forum. We're focused on Messaging Servers, here. Unlikely you'll get any Java programming from us.
If you're talking about Messaging Server, start by downloading the software from sun.com/downloads. -
Getting started with java is dead link
otn home page > click 'Java' under 'Technologies' in left frame. > click 'Java' in the 'getting started box'. That link is broken.
Fixed; the correct URL is:
http://www.oracle.com/technology/getting-started/java.html
Cheers, OTN -
Where can I find "Getting Started with AppleScript"?
I googled it. And it doesn't show any links from Apple. I'm trying to learn AppleScript and the Language guide says to go through the Overview first which in turn recommends going through Getting Started with AppleScript.
I even searched Mac Reference Library but it just doesn't show up!
Any help?
NeeravNo, certainly not. I mean, I don't know any AppleScript, but I can say with certainty that the answer to that question is no.
Objective-C is a programming language that is an extension of the C language. It is the language that is used to develop applications for Mac and iPhone. Other languages like C++ and Java can be used as well, but Objective-C is the language that Apple really intends for you to use for Mac and iPhone development, since it is heavily integrated with the Cocoa framework (for Mac developemt) and Cocoa Touch framework (for iPhone development). You need to know the C language to learn the Objective-C language, and you need to know the Objective-C language to work with the Cocoa or Cocoa Touch frameworks, but AppleScript is a totally separate and different animal from these things. AppleScript is a scripting language, and although it can technically be used to create applications from what I understand, it is mainly used as a mechanism for controlling applications. For example, you could use AppleScript to tell a certain application to perform a certain task everyday at a certain time. You can use it to create automated workflows and whatnot. I think that's what it's mainly meant for.
It's worth noting, however, taht there is a development environment called AppleScriptObjC. I don't really know anything about this, except that it allows for AppleScript to be used as the primary programming language.
I found a lot of this information at [Wikipedia's AppleScript page|http://en.wikipedia.org/wiki/AppleScript], so you might want to consider looking over it real quick -- it might be helpful. Here is the link to [Wikipedia's Objective-C page|http://en.wikipedia.org/wiki/Objective-c] and [Wikipedia's Cocoa page|http://en.wikipedia.org/wiki/Cocoa_%28API%29]. As someone said on these forums, Wikipedia is far from the last word on any subject, but those links might be helpful for you for just getting an idea of what these things are all about.
Hope that helps some. Please let us know if you have any other questions. -
Getting started with Hibernate
Hi Friends,
I am working through my way to get started with Hibernate. I am using the tutorial at http://www.gloegl.de/8.html and I am stuck at running the application. I get the following error
D:\Hibernate>run
D:\Hibernate>D:\jdk1.3.1\jre\bin\java -classpath .\lib\hibernate2.jar;.\lib\jta.
jar;.\lib\commons-logging.jar;.\lib\hsqldb.jar;.\lib\cglib2.jar;.\lib\commons-co
llections.jar;.\lib\dom4j.jar;.\lib\odmg.jar;.\lib\jdbc2_0-stdext.jar;.\bin Even
tManager
Initializing Hibernate
INFO - Hibernate 2.1 final
INFO - hibernate.properties not found
INFO - using CGLIB reflection optimizer
INFO - JVM does not support LinkedHasMap, LinkedHashSet - ordered maps and sets
disabled
INFO - using workaround for JVM bug in java.sql.Timestamp
INFO - configuring from resource: /hibernate.cfg.xml
INFO - Configuration resource: /hibernate.cfg.xml
INFO - Mapping resource: Event.hbm.xml
INFO - Mapping class: Event -> EVENTS
INFO - Configured SessionFactory: null
INFO - processing one-to-many association mappings
INFO - processing one-to-one association property references
INFO - processing foreign key constraints
INFO - Using dialect: net.sf.hibernate.dialect.HSQLDialect
INFO - Use outer join fetching: false
INFO - Using Hibernate built-in connection pool (not for production use!)
INFO - Hibernate connection pool size: 20
INFO - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:data/test
INFO - connection properties: {user=sa, password=}
INFO - Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactor
y
INFO - No TransactionManagerLookup configured (in JTA environment, use of proce
ss level read-write cache is not recommended)
INFO - Use scrollable result sets: true
INFO - echoing all SQL to stdout
INFO - Query language substitutions: {}
INFO - cache provider: net.sf.hibernate.cache.HashtableCacheProvider
INFO - instantiating and configuring caches
INFO - building session factory
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/transform/S
ource
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja
va:160)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.
java:726)
at EventManager.<init>(EventManager.java:19)
at EventManager.main(EventManager.java:27)
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/transform/S
ource
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja
va:160)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.
java:726)
at EventManager.<init>(EventManager.java:19)
at EventManager.main(EventManager.java:27)
what jar files/files I need other than mentioned in the tutorial.
please help me to get started with Hibernate...
Thanks for your help and time.java -classpath .\lib\hibernate2.jar;.\lib\jta.jar;.\lib\commons-logging.jar;.\lib\hsqldb.jar;.\lib\cglib2.jar;.\lib\asm-1.4.1.jar;.\lib\commons-collections.jar;.\lib\dom4j.jar;.\lib\odmg.jar;.\lib\xml-apis-2.3.0.jar;.\lib\xerces-2.3.0.jar;.\lib\jdbc2_0-stdext.jar;.\bin de.gloegl.road2hibernate.EventManager
see above classpath and identify....how many jars you missed... :)
All the best
Nilesh -
Problems getting started with LabVIEW FPGA
Two (probably) related questions:
1. I am trying to get started with LabVIEW FPGA, and I am having trouble using a host VI to test my FPGA VI. I started with a basic QAM modulator VI, to be run on the FPGA, and I have reached the point where I need to verify the logic and timing with this VI running on the development computer with simulated IO. I have tried various combinations of putting the code inside single-cycle timed loops vs not; putting the modulator block directly into the host VI, and using the "FPGA reference" block. When neither the host VI nor the modulator VI use a single-cycle timed loop, I see correct behavior. In every other case, the output of the VI is either absent or incorrect. I need to use a single-cycle timed loop in the FPGA VI to properly verify timing behavior (as far as I know), so the one functioning case is not enough for me.
I'm sure there is a key step I'm missing or misunderstanding, but I have not been able to figure it out myself yet. I've attached my modulator diagram as well as two different attempts at host VIs. I can share other information, but I'm not sure what is most relevant.
2. I am also trying to test a simple wrapper VI for the Xilinx FFT block, and I am having trouble accessing FIFOs inside the host VI. I thought this would be relatively straightforward, but when I tried to change the "method" on an "invoke method" block, there were no options for accessing FIFOs, as I understood there should be. This is a total roadblock for me. These two diagrams are also attached, the test diagram shows the options available to me for the "invoke method" block.
Labview 2013, PXIe-7965R, PXIe-8133 controller.
I had to combine the diagram images; in case they are hard to follow this way, see the individual images here: http://imgur.com/a/oB6OD .
Thanks in advance for any suggestions.
Attachments:
mod_all.png 68 KB
fft_all.png 52 KBHello Monguin61
If you are having problems reading from DMA FIFO's you should test them using a very simple code to understand their behavior. First, you could start taking a look to the linked documents:
Reading DMA FIFOs from Host VIs (FPGA Interface)
Using DMA FIFO to Develop High-Speed Data Acquisition Applications for Reconfigurable I/O Devices
FIFO.Read (Invoke Method)
Then you could test and analyze a simple example to understand how it works, for example this one: Simple DMA FIFO Example for FPGA.
Check the references when you are using DMA FIFO's, I noticed you did not connect them in the second picture attached.
Regards
Frank R. -
Hi, I am really new to J2EE.Is there any pdf available to get start with J2EE basics.
kviaruningroups wrote:
Hi, I am really new to J2EE.Is there any pdf available to get start with J2EE basics.The most basic Java EE app you can start with uses servlets and JSPs (written using JSTL) to access relational databases using JDBC. You can go a very long way indeed just with those. Add the rest as needed.
% -
Help Needed with getting Started With Office 365 Development C# Rest API
We have a O365 Tenant Setup with a Federated Active Directory Setip we want to be able to right code that will connect to our tenant and perform basic CRUD operations against it (ex. Creating mail boxes)
The problem is we want this to be contained in a CLR trigger In SQL so say if a new user is added to our user table then we would create a new AD account for that user and also create a mailbox.
But I cannot find and example on how to connect to Office 365 using the REST API (Not the SDK because you can not add the connected service to a class library) and before the required actions that we need to do. All the example I have found are with the
SDK API and/or require window 8 and that is also not an option.
Please help I do not know where to start, and I would love to see some examples done in c# and not using the SDK.
Thanks,
Andrew DayHi,
>> Instead of SharePoint URLs I would use the O365 API URL?
Yes, in my sample code, I was accessing the File resource by using the O365 File API. In your case, you need to acquire the token to access the Mail resource and use O365 Mail API.
By the way, I think the article
Understand Office 365 app authentication concepts will help you to understand the authentication process in Office 365 Development.
>> Why can I not use the SDK API with a class Library?
Actually, you are able to reference the Office 365 .NET SDK in the class Library. But the class library project type was not supported by Visual Studio Office 365 Development Tool. As a workaround,
you can reference the SDK manually in your project.
Since your original question is about “getting started with Office 365 Development C# Rest API”, if you have more questions about the Office 365 SDK, I will suggest you posting a new thread
to discuss the Office 365 SDK. It will involve more other community members to share their ideas and experience on a specific a question and for others who had a similar question could also find the valuable information quickly.
Regards,
Jeffrey
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Posting error in doing goods receipt
Hi,, I'm getting an error when try to do a goods receipt for 21.01.2010 "Posting only possible in periods 2009/03 and 0000/00 in company code 1000" I would need to change the posting date?but i'm not sure how to do and where ?please detailed me... Th
-
Hi All, We developed a scenario, multiple IDoc-XI-single File using BPM. Please help us in scheduling, following are the questions we have: a. What is the efficient way of scheduling in our scenario? b. How to setup scheduling in R/3? c. In XI-BPM, w
-
Outlook syncing issues - duplications
I am attempting to sync my Outlook contacts with my iPhone, which I have done a number of times in the past, but now notice some problems. When I attempt to sync, I now get a warning that that I will be changing more than 25% of my contacts - it says
-
Processing on change of field values in internal table
I have a internal table eg id type keyword 1 1 report 1 1 program n02 4 event n02 5 loop n0
-
I am denied permission to download videos
I'm having difficulty downloading videos from 1 website . When I attempt to save the video I get a message "you do not have permission to access the requested resource". I have used the proper password for the website and am able to watch the video o