Newbie trying to use javac
I installed the Java development kit, it did not work so I uninstalled everything saying java from the Add/Remove programs menu.
Then I installed the program jdk-6u12-windows-i586-p.exe. I installed it to the C:\jdk1.6.0 directory. (I had previously installed it under Program files)
I did a file search for javac.exe under the c:\jdk1.6.0 directory, which it could not find. Am I missing installing something?
I added the environment path string c:\jdk1.6.0\bin to the string.
What am I missing?
Google!
This is one of the most frequently asked questions. There have been numerous posts about it as well as step-by-step instructions on how to set everything up on Sun's website. Please do a little research and find the answer yourself instead making someone waste their time repeating once again what is already on the web.
Similar Messages
-
Newbie trying to use tomcat to run jsp
I'm just trying to setup Tomcat on my machine, and i've run into a couple of issues.
(1) if i type in http://localhost:9000/test in IE, it gives me an error saying TCP_ERROR and how the web server is possibly down. however if i try it in Netscape, the page shows up fine. I read in the running.txt file that it had something to do with the LAN settings, but i have no idea what has to be done in there to get it to work??
(2) the second issue is, if i give someone the url http://<IP>:9000/test that is using another machine, what has to be done for them to see it? i had someone on another machine try it and they got page could not be found.
TIA>
(1) if i type in http://localhost:9000/test in IE, it
gives me an error saying TCP_ERROR and how the web
server is possibly down. Do you mean HTTP 500 error?
however if i try it in
Netscape, the page shows up fine. I read in the
running.txt file that it had something to do with the
LAN settings, but i have no idea what has to be done
in there to get it to work??
No LAN settings are needed. You're doing something else wrong. Is there a TOMCAT_HOME/webapps/test directory set up? Unless you created it, there's no such URL in Tomcat's setup.
(2) the second issue is, if i give someone the url
http://<IP>:9000/test that is using another machine,
what has to be done for them to see it? i had someone
on another machine try it and they got page could not
be found.
TIA If they can see the machine on the network, you don't have to do anything else special. If they can ping it, they can talk to Tomcat.
If you're a newbie, as your topic says, why are you changing things like the Tomcat port? Leave it as the default until you have Tomcat under your belt. - MOD -
Newbie: trying to use XML in a Line Series.
So, I have a similar question to my last one, how to connect some XML from an RPC to a line series. The XML comes across fine. Problem is, why does it not work below?
The XML is simple, and I use dataProvider="{tsRPC.lastResult.TIMESERIES}"....then yField="DataPoint.Value"...but it does not work
I have seen some examples that use the "data.something"...where data must be some internal object. I tried various combinations of everything.
<TIMESERIES>
<DataPoint Date="38000" Value="34.51"/>
<DataPoint Date="38001" Value="35.06"/>
</TIMESERIES>
<mx:HTTPService id="tsRPC"
url="http://localhost:6574/Test2/TimeSeriesServer"
resultFormat="e4x">
</mx:HTTPService>
<mx:Panel title="LineChart and AreaChart Controls Example3"
height="491" width="729" layout="horizontal" x="350" y="84">
<mx:LineChart id="linechart" height="100%" width="100%"
paddingLeft="5" paddingRight="5"
showDataTips="true" dataProvider="{tsRPC.lastResult.TIMESERIES}">
<mx:horizontalAxis>
<mx:CategoryAxis id="ca" categoryField="DataPoint.Date" title="Date" />
</mx:horizontalAxis>
<mx:series>
<mx:LineSeries yField="DataPoint.Value" form="curve" displayName="Profit" lineStroke="{s1}"/>
</mx:series>
</mx:LineChart>
<mx:Legend dataProvider="{linechart}"/>
</mx:Panel>thanks paul.
I am learning now about e4x. For those who don't know...
http://www.actionscript.org/resources/articles/222/1/Intro-to-E4X/Page1.html
For those that don't know E4X stands for ECMAScript for XML and this specification introduces some new functionality that makes working with XML a lot simpler. New to AS3 are the XML, XMLList,QSpace and Namespace E4X classes. E4X not only makes life simpler but provides greater code consistency and familiarity (we can use dot syntax more similiar to ActionScript). -
Complete Newbie trying to use Ultra Key
Hello,
I am a total newbie, and am working on learning to use my new green screen & lights :-) So far, I am able to get the vast majority of the green out.
Here is a shot of the green background:
Here is my background:
Here is my end result:
You'll notice the fuzzy remanants of the green screen after using Ultra Key filter.
How do I get rid of this? Any help is much appreciated
Thanks,You do need to start of with a relatvely uncreased, evenly lit backdrop. I can see why you're having problems.
With just one eyedrop sample...
I would try and create a garbage matte to mask out as much unwanted background as possible and then try the key on the remaining content. -
Hello fellow Mac user.
So I'm working on a projekt in logic, and a friend of my has recorded drums and are sending me audiofiles in a .zip file.
However, when I tried to unzip it a new file is created that is called .cpgz. So i looked around on various forums witch said I should use Terminal. I used the following commands:
cd ./desktop
unzip file.zip
Then I get the following message:
Archive: file.zip
skipping: audio1 need PK compat. v4.6 (can do v2.1)
skipping: audio2 need PK compat. v4.6 (can do v2.1)
skipping: audio3 need PK compat. v4.6 (can do v2.1)
skipping: audio4 need PK compat. v4.6 (can do v2.1)
skipping: audio5 need PK compat. v4.6 (can do v2.1)
My-MacBook-Pro:desktop namename$
I do not understand the problem, and would apritiate some help on what I'm doing wrong,
Thank you, and sorry if there are some spelling and/or gramatical errors
//Wille@blomman007: you should be able to unpack the archive with the TheUnarchiver: it supports cpgz - archives. It's available from the app store: https://itunes.apple.com/app/the-unarchiver/id425424353?mt=12&ls=1
-
Hi,
I'm trying to run the Employee sample that was provided as example in Oracle. I've instaled Oracle 8.0.5 (client) on a NT, JDK and JRE 1.1.8. It compiles fine, but when I try to run I get:"
xception in thread "main" java.lang.UnsatisfiedLinkError: get_client_server_nls_ratio
at oracle.jdbc.oci7.OCIDBAccess.getNlsRatio(OCIDBAccess.java:1577)
at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:263)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:127)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:170)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at Employee.main(Compiled Code)
Does anyone has any ideia why is it happening? Thanks a lot!<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gustavo Badauy ([email protected]):
Hi,
I'm trying to run the Employee sample that was provided as example in Oracle. I've instaled Oracle 8.0.5 (client) on a NT, JDK and JRE 1.1.8. It compiles fine, but when I try to run I get:"
See my answer:
java.lang.UnsatisfiedLinkError:
get_client_server_nls_ratio topic submitted by Craig Nelsen
xception in thread "main" java.lang.UnsatisfiedLinkError: get_client_server_nls_ratio
at oracle.jdbc.oci7.OCIDBAccess.getNlsRatio(OCIDBAccess.java:1577)
at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:263)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:127)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:170)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at Employee.main(Compiled Code)
Does anyone has any ideia why is it happening? Thanks a lot!<HR></BLOCKQUOTE>
null -
Help...Newbie trying to use iDVD
I have sent over from iPhoto about 800 pictures to iDVD. I made a nice intro screen (the baby mobile), previewed it (it works fine), then select burn. It takes several hours to encode...then NOTHING. It doesn't burn the DVD. After several attempts, I tried encoding it to a disk image...still nothing. I assume this is user error (likely). Or it may be too many picutres, although the total size of the project that is developed (the .mov) is less than a GB. Any help would be greatly appreciated. This is a project for my wife's Valentines Gift...so time is of the essence
PowerBook Mac OS X (10.4.4)Hi Mark:
Welcome to discussions!
You may want to try a different media ( like DVD-R ) and you should read these links.
iDVD: Troubleshooting issues with burning discs
http://docs.info.apple.com/article.html?artnum=302925
What are some common reasons for problems when creating a DVD?
http://www.kentidwell.com/idvd4/#faq_20
Get back to us if you have more problems!
Sue -
JDev 10.1.3 and JDK1.2.2 use javac problem
I have an old application that I need to compile in 1.2.2, and have tried the "use javac" checkbox on the project properties compile page. The compiler seems to run, but there is an intential error in the code. I put it there, because the class file didn't seem to get generated. I tried this on command line, and apparently '-source' is an invalid option in 1.2.2.
E:\jdk1.2.2\bin\javac.exe -J-mx512m -verbose -source 1.2 -target 1.2 -encoding Cp1252 -g -classpath E:\jdk1.2.2\jre\lib\rt.jar;E:\jdk1.2.2\jre\lib\i18n.jar;E:\jdk1.2.2\jre\classes;E:\app\codebase;E:\oracle\jdev1013\j2ee\home\lib\ojsp.jar;E:\oracle\jdev1013\j2ee\home\jsp\lib\taglib\ojsputil.jar;E:\oracle\jdev1013\j2ee\home\oc4j.jar;E:\oracle\jdev1013\j2ee\home\lib\oc4j-internal.jar;E:\oracle\jdev1013\j2ee\home\lib\servlet.jar;E:\oracle\jdev1013\jdev\lib\ojc.jar -sourcepath E:\app\src -d E:\PTC\Windchill\codebase @C:\DOCUME~1\gteft\LOCALS~1\Temp\javac30279.tmp
[1:53:55 PM] Successful compilation: 0 errors, 0 warnings.
Has anyone else run into this?
Any help or thoughts on how to adjust this behavior for 1.2.2's javac would be appreciated.Thank you for responding. I am aware of (and frustrated by) issues and limitations due to this application's dependancies on an aging platform, and would upgrade if it were my choice. The dependancy is in the vendor's API, and not in code that I can change.
As the invalid option was not captured as a message or counted as an error, I thought that perhaps this could be a potential issue for using javac with any version.
I was hoping to see if there were additional settings controlling the command line options that I couldn't find.
Thanks,
Greg -
Hello,
I am using Windows XP Home Edition and j2sdk1.4.1_01.
I am getting the following error message upon trying to use javac from the command prompt:
'javac' is not recognized as an internal or external command,
operable program or batch file.
Below is my output upon trying to use javac. I have also provided my current path. Also, as you can see javac.exe is present in the bin directory.
How do I enable javac from any directory? The instruction Sun provides doesn't seem to work for XP!
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.1_01\bin
C:\Documents and Settings\>javac
'javac' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\>java
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
Here is my <C:\j2sdk1.4.1_01\bin> directory below. As you can see javac.exe is present in the bin directory:
C:\Documents and Settings>cd ../j2sdk1.4.1_01\bin
C:\j2sdk1.4.1_01\bin>dir
Volume in drive C is IBM_PRELOAD
Volume Serial Number is 6C67-7C74
Directory of C:\j2sdk1.4.1_01\bin
01/16/2003 03:21 PM <DIR> .
01/16/2003 03:21 PM <DIR> ..
09/30/2002 02:08 AM 28,794 appletviewer.exe
09/30/2002 02:08 AM 28,792 extcheck.exe
09/30/2002 02:08 AM 16,384 HtmlConverter.exe
09/30/2002 02:08 AM 28,794 idlj.exe
09/30/2002 02:08 AM 28,775 jar.exe
09/30/2002 02:08 AM 28,796 jarsigner.exe
01/16/2003 03:21 PM <DIR> java
09/30/2002 02:08 AM 24,672 java.exe
09/30/2002 02:08 AM 28,789 javac.exe
09/30/2002 02:08 AM 28,795 javadoc.exe
09/30/2002 02:08 AM 28,789 javah.exe
09/30/2002 02:08 AM 28,785 javap.exe
09/30/2002 02:08 AM 24,674 javaw.exe
09/30/2002 02:08 AM 28,798 jdb.exe
09/30/2002 02:08 AM 28,792 keytool.exe
09/30/2002 02:08 AM 28,788 kinit.exe
09/30/2002 02:08 AM 28,788 klist.exe
09/30/2002 02:08 AM 28,786 ktab.exe
09/30/2002 02:08 AM 28,806 native2ascii.exe
09/30/2002 02:08 AM 28,811 orbd.exe
09/30/2002 02:08 AM 28,798 policytool.exe
09/30/2002 02:08 AM 28,780 rmic.exe
09/30/2002 02:08 AM 28,786 rmid.exe
09/30/2002 02:08 AM 28,798 rmiregistry.exe
09/30/2002 02:08 AM 28,797 serialver.exe
09/30/2002 02:08 AM 28,823 servertool.exe
09/30/2002 02:08 AM 28,813 tnameserv.exe
26 File(s) 728,003 bytes
3 Dir(s) 21,616,312,320 bytes free
C:\j2sdk1.4.1_01\bin>
As you can see javac.exe is present in the bin directory. How do I enable javac from any directory? The instruction Sun provides doesn't seem to work for XP!
Thanks, HarveyThese 2 tests have different errors, and therefore have different solutions.
I either get:
C:\Documents and Settings\SHEILA.IBM-IDIYAYPGDZV>cd
../../j2sdk1.4.1_01\bin\java
c hello.java
The system cannot find the path specified., The error message indicates that MSDOS can not find ../../j2sdk1.4.1_01\bin\javac. Perhaps this is just a typo in your post, but ../../ won't work in MSDOS, at least on my machine. It has to be ..\..\ but when I try the same command adapted for my system and correct the /, it works. (By 'works' I mean the javac.exe is found.)
C:\Documents and Settings\Walt>..\..\j2sdk1.4.0\bin\javac
or
C:\j2sdk1.4.1_01\bin>javac hello.java
error: cannot read: hello.java
1 error
when everything is C:\j2sdk1.4.1_01\bin.In this case, MSDOS found the javac.exe file and executed it. The error message is from the javac compiler and it means the compiler looked in C:\j2sdk1.4.1_01\bin and could not find a file named hello.java. Use the command "dir" and make sure that the file hello.java exists in this directory - especially make sure that the file is not named hello.java.txt
Going back over your posts, it appears that you have set your Path correctly, so perhaps the "cannot read:" error was the main problem. -
Trying to use lexical parameter in ORDER BY
I'm using BIP in EBS and I have a report that needs to be sorted based on parameters selected in conc. pgm. I'm trying to use lexical parameters to accomplish this, however, it's not working. I have defined my lexical parameter in Package Spec and I'm setting it accordingly in Package Body(BeforeReport trigger). In my data template (dataQuery section) I have the following SQL
SELECT 'AP_BANK_ACCOUNTS_ALL' as "table_audit2",
a.bank_account_id,
to_char(a.audit_timestamp,'DD-MON-YYYY HH:MI P.M.'),
a.audit_transaction_type ,
a.audit_user_name,
a.bank_account_name,
a.bank_account_num,
a.account_type,
a.org_id,
a.bank_branch_id,
a.xxap_field_changed,
a.xxap_new_value,
a.xxap_old_value,
b.bank_name,
d.short_name
FROM xxap_bank_accounts_all_gtmp a,
ap_bank_branches b,
hr_organization_information c,
gl_sets_of_books d
WHERE a.bank_branch_id = b.bank_branch_id
AND a.org_id = c.organization_id
AND c.org_information_context = 'Operating Unit Information'
AND c.org_information3 = d.set_of_books_id
ORDER BY &lv_order_by
The IF statments below are being used in package to set lexical parameter
note: p_order_by_1 & 2 are from conc.pgm
IF p_order_by_1 IS NOT NULL
THEN
lv_order_by := to_char(p_order_by_1);
lv_order_1 := 'Y';
END IF;
IF p_order_by_2 IS NOT NULL
THEN
IF lv_order_1 = 'Y'
THEN
lv_order_by :=lv_order_by||','||to_char (p_order_by_2);
lv_order_2 := 'Y';
ELSE
lv_order_by := to_char(p_order_by_2);
lv_order_2 := 'Y';
END IF;
END IF;
Any help will be greatly appreciated!!!! I'm a newbie to EBS and BIP so you can probably imagine how frustrated I am.
Message was edited by:
user631051The conc. pgm completes successfully but my report is not sorted. Data Template below:
<properties>
<property name="include_parameters" value="true" />
<property name="include_null_Element" value="true" />
<property name="xml_tag_case" value="upper" />
<property name="db_fetch_size" value="500" />
<property name="scalable_mode" value="off" />
<property name="include_rowsettag" value="false" />
<property name="debug_mode" value="off" />
</properties>
<parameters>
<parameter name="p_start_date" dataType="date"/>
<parameter name="p_end_date" dataType="date"/>
<parameter name="p_org_id" dataType="number"/>
<parameter name="p_data_priority" dataType="character"/>
<parameter name="p_include" dataType="character"/>
<parameter name="p_account_type" dataType="character"/>
<parameter name="p_order_by_1" dataType="character"/>
<parameter name="p_order_by_2" dataType="character"/>
<parameter name="p_order_by_3" dataType="character"/>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[SELECT 'AP_BANK_BRANCHES' as "table_audit1", a.bank_branch_id as "bank_branch_id",
to_char(a.audit_timestamp,'DD-MON-YYYY HH:MI P.M.') as "audit_timestamp",
a.audit_transaction_type as "audit_transaction_type", a.audit_user_name as "audit_user_name",
b.bank_name as "bank_name", b.bank_branch_name as "bank_branch_name",
to_char(b.bank_number) as "bank_number", a.active_date as "active_date", a.xxap_field_changed,
a.xxap_new_value, a.xxap_old_value
FROM xxap_bank_branch_gtmp a,
ap_bank_branches b
WHERE a.bank_branch_id = b.bank_branch_id
]]>
</sqlStatement
<sqlStatement name="Q2">
<![CDATA[SELECT 'AP_BANK_ACCOUNTS_ALL' as "table_audit2",
a.bank_account_id as "bank_account_id",
to_char(a.audit_timestamp,'DD-MON-YYYY HH:MI P.M.') as "audit_timestamp",
a.audit_transaction_type as "audit_transaction_type",
a.audit_user_name as "audit_user_name",
b.bank_name as "bank_name",
a.bank_account_name,
a.bank_account_num as "bank_account_num",
a.account_type as "account_type",
to_char(a.org_id) as "org_id",
a.bank_branch_id as "bank_branch_id",
a.xxap_field_changed,
a.xxap_new_value,
a.xxap_old_value,
d.short_name as "short_name"
FROM xxap_bank_accounts_all_gtmp a,
ap_bank_branches b,
hr_organization_information c,
gl_sets_of_books d
WHERE a.bank_branch_id = b.bank_branch_id
AND a.org_id = c.organization_id
AND c.org_information_context = 'Operating Unit Information'
AND c.org_information3 = d.set_of_books_id
ORDER BY &lv_order_by
]]>
</sqlStatement>
</dataQuery>
<dataTrigger name="beforeReportTrigger" source="XXAP_RPT_BANK_AUDIT_EXT_PKG.BeforeReport"/>
<dataStructure>
<group name="G_Bank_Branches" source="Q1">
<element name="table_audit1" value="table_audit1"/>
<element name="bank_branch_id" value="bank_branch_id"/>
<element name="audit_timestamp" value="audit_timestamp"/>
<element name="audit_transaction_type" value="audit_transaction_type"/>
<element name="audit_user_name" value="audit_user_name"/>
<element name="bank_name" value="bank_name"/>
<element name="bank_branch_name" value="bank_branch_name"/>
<element name="bank_number" value="bank_number"/>
<element name="active_date" value="active_date"/>
<element name="xxap_field_changed" value="xxap_field_changed"/>
<element name="xxap_new_value" value="xxap_new_value"/>
<element name="xxap_old_value" value="xxap_old_value"/>
</group>
<group name="G_Bank_Accounts_All" source="Q2">
<element name="table_audit2" value="table_audit2"/>
<element name="account_type" value="account_type"/>
<element name="bank_account_id" value="bank_account_id"/>
<element name="audit_timestamp" value="audit_timestamp"/>
<element name="audit_transaction_type" value="audit_transaction_type"/>
<element name="audit_user_name" value="audit_user_name"/>
<element name="bank_name" value="bank_name"/>
<element name="bank_account_name" value="bank_account_name"/>
<element name="bank_account_num" value="bank_account_num"/>
<element name="org_id" value="org_id"/>
<element name="xxap_field_changed" value="xxap_field_changed"/>
<element name="xxap_new_value" value="xxap_new_value"/>
<element name="xxap_old_value" value="xxap_old_value"/>
<element name="short_name" value="short_name"/>
</group>
</dataStructure>
</dataTemplate> -
I get an odd error when trying to use TreeSet on my computer... even in code that I know compiles on other computers...
C:\Program Files\JavaCompiler\Programs\Exam2\Prob03>javac Prob03.java
.\Prob03MyClass.java:1: cannot resolve symbol
symbol : class TreeSet
location: class Prob03MyClass
class Prob03MyClass extends TreeSet
^
1 error
I'm figuring that it doesn't know where to find TreeSet... even though I put in the command
import java.util.*;
So... anyone know what I can do to fix this?nevermind... I had the import java.util.* only in the driver program, and not in the class...
When I put it in the class, it worked... kinda... -
Newbie: Trying to get data from Code Behind file to HTML file.
Greetings,
I am trying to use the opener link adaptive tag to open a specific page. I have the Object ID, and classID as variables in my class in my class file, but I do not know how to get that data into the opener link which is on the html page.
Should I be using session variables? If so how, I am a newbie.
Does anyone know how?
Thanks.Kinda depends on your flavor/need/preference. I've done it...
* Using session variables and just writing to the page in script blocks. Not preferred in .NET-land, but definitely more of the fast/traditional ASP style. Use sparingly and with caution. Be really careful about VS.NET totally destroying your tags. It seems to love doing that (as an aside - HUGE thank-yous to the BEA engineers who altered the tags to consistenly use lower case. Really. I can't thank you enough. :) )
* Using label controls and then just populating the label with the formatted adaptive tag (this can work well)
* One of our guys did a really simple/elegant server control that takes arguments for the objectid, classid, etc. Nice for creating things repeatedly server-side and gets you by the HTML, quotes, etc. all over the place. Nice as it also consolidates the tag in a single place you can alter once.
For session variables, you'd just do something like...
<%
'//in your code-behind
Session("myClassID") = 18
Session("myObjectID") = 12345
%>
<!-- in your aspx file -->
<pt:standard.openerlink xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' pt:objectid='<%=Session("myObjectID")%>' pt:classid='<%=Session("myClassID")%>' pt:mode='2' target='myWindow' onclick=window.top.open('','myWindow','height=800,width=700,status=no,toolbar=no,menubar=no, location=no');>Adaptive Tags Made This Easy - Click to Open My Awesome Document</pt:standard.openerlink>
That help?
Personal style, I would try to avoid using session, etc. directly on your ASPX file. I'd go with writing out the HTML through labels, data lists, etc. in your code-behind.
Thanks,
Eric -
Compiling web dynpro using javac
I am writing an ant script to build ear file for my web dynpro application. We can not want to use Netweaver studio because our build process is automated using ant. In my web dynpro application there are 45 java files including my own java classes & the java classes generated by netweaver studio. But in my app.jar file there are 80 java classes. if I can locate all the java files then I can use javac to compile these classes & create ear file independent of netweaver studio.
Has anyone tried using ant to build ear file for a webdynpro app? How are these extra classes created without corresponding java files?Hi Sam,
Webdynpro is a framework within the Studio.The meta model of it requires all the jar files for compilation.You can see all jar files in the plugin folder of the same.If you can export all these jar files
then I think you can compile and run your script outside studio but surely it is a tedious process.Moreover when you want to run any webdynpro application it is designed to open an IE with the framework.Lot of work around has to be done for opening external browser for running it other than studio.
Hope my points briefs your query.
Can you tell me the reason why you don't want to compile it within the studio?
Regards,
Guru -
I have created desktop gui application and I see several files created. I want to compile from the using the javac command. But I do not know which of the files I should compile first. When I build from the IDE, I get no errors. I tried compiling all of these files separartely using javac command and I got many errors.
myJavaFileView.java
myJavaFileApp.java
myJavaFile.javaSuppose you want to use these three classes.
There are two possibilities:
1. Three separate files called myJavaFile.java,myJavaFileView.java and myJavaFileApp.java. With older Java compilers, it may be necessary to compile the file myJavaFile.java first, with
javac myJavaFile.java
so that the class file myJavaFile.class is found when compiling later the file myJavaFileView.java and myJavaFileApp.java. On newer compilers, this should happen automatically when compiling myJavaFileApp.java and myJavaFileView.java.
2. Put both classes into one file. Note that then only one of these classes may have the public modifier in front of it, as in
public class myJavaFile
which then has to agree with the filename (that is, the file must be called myJavaFile.java). -
Trying to use jNNTPe NNTP library
I am new to Java programming but have done lots of programming with Perl. I am trying to use a java .jar library I found on source forge to do NNTP communications. The name of the jar file is jNNTPe.jar. I have noticed that in all of the source files for the library the file starts with something like:
package NNTP;
I am guessing that I need to include a line like:
import NNTP.*;
in my code but when I try a trivial example like:
import NNTP.*;
class HelloWorld {
public static void main(String[] args) {
System.out.println("hello");
javac fails with the error
package NNTP does not exist.
I have a classpath of
CLASSPATH=.
and jNNTPe.jar in the current working directory when I compile.
Could someone please suggest how to get this simple example to compile so I can move to the next step of actually calling one of the NNTP library functions? The library regrettably does not come with any sample apps that I have found. Also if someone knows of a better NNTP library that I should be using I am interested.
Ronald SchmidtYou don't put a jar file's directory in your classpath. Rather, you put the jar file itself.
In unix format, it would be like this:
javac -classpath .:someDir:aFile.jar:anotherFile.jar someFiles.java
Maybe you are looking for
-
Ipod not recognised by iTunes after latest Ipod Updater Software loaded
Hi Can you please help as I can't get my Ipod to work anymore with iTunes. I recently did a "clean-up" of my computer and removed a lot of old files to speed up my computer and whilst doing this I upgraded my iTunes software with the latest Ipod Soft
-
Cant find character direction option and i dont have those two buttons that change type direction
i downloaded a few hours ago the free one month trial of cc and i downloaded illustrator but i seem to be missing the option to change the type directon from right to left and from left to right at first it wrote hebrew words opposite... so if i writ
-
Please log-in with an admin account to access adobe premiere elements
I have bought Premier Elements but it will not start. Keeps asking me to: "please log-in with an admin account to access adobe premiere elements". Then it closes. ASUS laptop, 17" Processor: i7- 4700HQ @2.4 GHz RAM 8 GB, Win 8.1 64 My account is Ad
-
TOC run-in has no spaces, how can i fix this?
TOC run-in has no spaces - Under the TOC's "Run-in" option, it says that "A semicolon followed by a space (; ) separates the entries." but I keep getting the entries with only a (;) and no space.
-
Catalyst Exporting/Transcoding
Greetings, I'm not very experienced in Catalyst or color correction in general but I can't seem to export/transcode a file using Catalyst and have it "show up" properly. I would consider myself very experienced using XDCAM Transfer and Content Brows