[svn] 1170: compiler: renaming the Compiler classes
Revision: 1170
Author: [email protected]
Date: 2008-04-09 16:17:57 -0700 (Wed, 09 Apr 2008)
Log Message:
compiler: renaming the Compiler classes
* flex2.compiler.abc:Compiler to AbcCompiler
* flex2.compiler.as3:Compiler to As3Compiler
* flex2.compiler.css:Compiler to CssCompiler
* flex2.compiler.i18n:Compiler to I18nCompiler
* flex2.compiler.mxml:Compiler to MxmlCompiler
Bugs: n/a
QA: Yes
Doc: No
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/MetaDataParser.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEv aluator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_ja.properties
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java
Added Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/AbcCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/As3Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/CssCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/I18nCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlCompiler.java
Removed Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Compiler.java
In the properties of your project, there is a page called "Java Build Path". On the bottom of that page, there is this field "Default output folder" in which you can specify to which directory Eclipse should write the .class files.
Then, for the build options, go to the Run Dialog (Run menu, Show Run Dialog). There you might have several configurations for several programs. Select yours, and go to the Arguments tab. There you have fields for program arguments (the String [] args), and VM arguments (like the -DProtoge.dir=)
Good luck!
Similar Messages
-
[svn] 1168: compiler: renaming the API classes
Revision: 1168
Author: [email protected]
Date: 2008-04-09 14:30:32 -0700 (Wed, 09 Apr 2008)
Log Message:
compiler: renaming the API classes
* flex2.compiler.asdoc:API to AsDocAPI
* flex2.compiler.swc:API to SwcAPI
* flex2.compiler:API to CompilerAPI
* flex2.linker:API to LinkerAPI
* flex2.tools:API to WebTierAPI
Bugs: n/a
QA: Yes, we should probably run the suite on this; though we could also wait for the Compiler classes to get renamed
Doc: No
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SourcePath.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SymbolTable.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SignatureExtension.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeClassInfo.ja va
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlLogAdapter.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/Swc.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_ja.properties
flex/sdk/trunk/modules/compiler/src/java/flex2/linker_en.properties
flex/sdk/trunk/modules/compiler/src/java/flex2/linker_ja.properties
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/ASDoc.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/ASDocConfiguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/CommandLineConfiguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Compc.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/CompcPreLink.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/DigestTool.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Fcsh.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Mxmlc.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Optimizer.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Application.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Library.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Toolkit.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/ApplicationCompilerConf iguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/LibraryCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMUtil.java
Added Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcAPI.java
flex/sdk/trunk/modules/compiler/src/java/flex2/linker/LinkerAPI.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java
Removed Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/API.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/API.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/API.java
flex/sdk/trunk/modules/compiler/src/java/flex2/linker/API.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/API.javaWhat is your classpath set to? If you can't find some classes, check there, rather than the path. You might want to include JAVA_HOME/lib/tools.jar and J2EE_HOME/lib/j2ee.jar for starters.
For example, to compile myclass.jave: javac -cp .;%J2EE_HOME/lib/j2ee.jar;%JAVA_HOME/lib/tools.jar myclass.java
Hope this helps,
Rob -
The mxmlc compiler displays the compilation errors in Japanese - and I want them in English!
Working in a Japanese company I have to use a machine with
Windows XP in Japanese. The thing is that I can barely read this
language so it's really depressing when most Java apps (and Flex,
through Eclipse, is one of them) outsmart themselves and default to
displaying their UI strings/messages in Japanese
without giving the user the ability to select another
language.
When compiling Flex apps using Flex Builder 2, the mxmlc
compiler is internally called by the IDE to perform the compilation
and then its output is displayed in the Problems View.
Well, the English version of mxmlc, has all its messages
(compilation warnings, errors etc) translated into Japanese (as far
as I can tell, they are hardwired into the exe). So although I'm
using the English version of the FB2,
with -locale en_US specified as an argument for the
compiler, all the compilation erros are reported in Japanese!
Even after changes in "flex-config.xml" and "jvm.config" as
you can see below, the compilation errors are still in Japanese. I
started to doubt that there's a solution to this problem but I
really hope there is one.
TIA,
.x.
Here are the relevant portions of my config files and an
example of mxmlc's output (Japanese might not display correctly):
-- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
2\frameworks\flex-config.xml --
<flex-config>
<compiler>
<!-- Turn on generatation of accessible swfs. -->
<accessible>false</accessible>
<!-- Specifies the locale for internationalization.
-->
<locale>en_US</locale>
</compiler>
</flex-config>
-- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
2\bin\jvm.config --
# Arguments to VM
java.args=-Xmx384m -Dsun.io.useCanonCaches=false
-Duser.language=en
-- mxmlc invoked on the command line --
mxmlc -o ASCIIArt -locale en_US ASCIIArt.mxml
Loading configuration file C:\Program Files\Adobe\Flex
Builder 2\Flex SDK 2\frameworks\flex-config.xml
ASCIIArt\AsciiArtBuilder.as(7): col: 45 Error:
定義
com.example.programmingas3.asciiArt:BitmapToAsciiConverter
が見つかりません。
import
com.example.programmingas3.asciiArt.BitmapToAsciiConverter;
^
ASCIIArt\AsciiArtBuilder.as(8): col: 45 Error:
定義 com.example.programmingas3.asciiArt:Image
が見つかりません。
import com.example.programmingas3.asciiArt.Image;inlineblue you are right about the "-locale" switch. I've
just found this page on live docs:
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001500.html
with all the compiler options
I thought that "-metadata.language <code>" (alias
"-language") sets the language, but it seems that it's only for
metadata.
So -locale is out. Thanks for clearing this for me. There's
one more path left...
As I wrote in my first message, besides the "-locale en_US"
compiler option, I am also setting the "user.language" flag in
jvm.config to "en":
-- C:\Program Files\Adobe\Flex Builder 2\Flex SDK
2\bin\jvm.config --
# Arguments to VM
java.args=-Xmx384m -Dsun.io.useCanonCaches=false
-Duser.language=en
According to the docs:
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001462.html
this is the standard (only?) way to pass arguments to the JVM. And
AFAIK "-Duser.language=en" is supposed to set the user language to
English. But it does not happen... I have to investigate this
more... -
Determine based on .class file, the version/vendor of the compiler
Is it possible to determine the version and/or vendor of the compiler used to create a .class file?
As far as I can see, the only information stored in a .class file are the major_version and minor_version, both used by the JVM at runtime to determine whether or not that version of the JVM can support the .class file. Can these version numbers be interpreted in any way to determine the version of the compiler?Is it possible to determine the version and/or vendor
of the compiler used to create a .class file?
As far as I can see, the only information stored in a
.class file are the major_version and minor_version,
both used by the JVM at runtime to determine whether
or not that version of the JVM can support the .class
file. Can these version numbers be interpreted in any
way to determine the version of the compiler?The compiler may insert its identification into the class file (as custom attributes), but is not required to do so. -
The runtime and the compile-time
Hello,
I am a beginner of java,I want to know something about the runtime and the compile-time.Please explain them to me.
Thanks very much!Hi,
Consider 2 variables in a class
public class A
int i = 10;
final int j = 20;
public static void main (String a[])
System.out.println ("Value of i = " + i);
System.out.println ("Value of j = " + j);
}This is compiled and the compiled class will look like:
public class A
int i = 10;
final int j = 20;
public static void main (String a[])
System.out.println ("Value of i = " + i);
System.out.println ("Value of j = " + 20);
}The difference is that the compile time variables are determined and replace by Java where as the variables like i are only executed or processed when the program runs.
This is one example. There are multiple examples.
Thanks and regards,
Pazhanikanthan. P -
[svn] 1091: compiler: class renaming in the compiler package
Revision: 1091
Author: [email protected]
Date: 2008-04-03 13:32:09 -0700 (Thu, 03 Apr 2008)
Log Message:
compiler: class renaming in the compiler package
* flex2.compiler:Context to CompilerContext
* flex2.compiler.util:Console to ConsoleLogger
Bugs: n/a
QA: No
Doc: No
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/API.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilationUnit.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/PersistenceStore.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SymbolTable.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedExtension.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/StyleExtension.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SyntaxTreeEvaluator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension. java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassE valuator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEv aluator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractDocumentBuil der.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMConsole.java
Added Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerContext.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/ConsoleLogger.java
Removed Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Context.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/Console.javaOut of curiosity, do you have a directory called WEB-INF inside of
MyPortal\portalApp\portlets\WFWeb? If so, can you try removing/renaming it?
"Gavin" <[email protected]> wrote in message
news:40581f2e$[email protected]..
>
I create a Application naming "MyPortal" in WorkShop.
And create a Project naming "portalApp".
In folder "portalApp", I create a folder "portlets"
And create a PageFlow in folder "portlets", so I get a jpf naming"WFWebController.jpf"
>
>
W:\bea\user_projects\applications\MyPortal\portalApp\portlets\WFWeb\WFWebCon
troller.jpf
>
But I add some java code in the method of WFWebController.jpf
when I run the WFWebController.jpf from workshop
the compiler throws a ERROR message "A PageFlowController at the root ofthe web
application must be in the default package."
Have any solution about this ERROR ?
Thanks,
Gavin. -
Revision: 1176
Author: [email protected]
Date: 2008-04-10 10:38:20 -0700 (Thu, 10 Apr 2008)
Log Message:
compiler: moving all the graphing classes to... the util.graph package (ala asc)!
Bugs: n/a
QA: No
Doc: No
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcMovie.java
flex/sdk/trunk/modules/compiler/src/java/flex2/linker/ConsoleApplication.java
flex/sdk/trunk/modules/compiler/src/java/flex2/linker/DependencyWalker.java
flex/sdk/trunk/modules/compiler/src/java/flex2/linker/FlexMovie.java
flex/sdk/trunk/modules/compiler/src/java/flex2/linker/SimpleMovie.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Project.java
Added Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/graph/
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/graph/Algorithms.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/graph/DependencyGraph.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/graph/Edge.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/graph/Graph.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/graph/Vertex.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/graph/Visitor.java
Removed Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/DependencyGraph.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/Algorithms.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/Edge.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/Graph.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/Vertex.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/Visitor.javaWe had this same case. I used web adi to moved the the classes to the right catalogues/offerings. Use the OTA_EVENT_API.UPDATE_CLASS procedure and OTA_EVENTS_V view to get all class listings. Find the right activity_version_id and parent_offering_id of the catalogue you want the classes to moved to. Use this values to change the values of the activity_version_id and parent_offering_id of the classes you will be moving.
-
Revision: 16929
Revision: 16929
Author: [email protected]
Date: 2010-07-15 07:38:44 -0700 (Thu, 15 Jul 2010)
Log Message:
Add a class that will register the required class aliases in the event the mxml compiler generation [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework.
Add a reference to this class in the RPCClasses file so it always gets loaded.
QE notes: Need a remoting and messaging regression test that doesn't use Flex UI.
Bugs: Watson bug 2638788
Modified Paths:
flex/sdk/trunk/frameworks/projects/rpc/src/RPCClasses.as
Added Paths:
flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.asGreat exercise to document the problem like this. It got me thinking about how an app with modules would be different from an app that does not use modules. Solution: I moved the dummy reference of PersonPhotoView out to the main application file (as opposed to being inside the module) and it worked. I've probably been lucky not to have experienced this problem earlier, because for most other entities I have an instance attached to my model which is linked / compiled with the main application.
-
Revision: 15669
Revision: 15669
Author: [email protected]
Date: 2010-04-23 10:12:53 -0700 (Fri, 23 Apr 2010)
Log Message:
Package and class level javadoc for the flex2.compiler.css,
flex2.compiler.common, and flex2.compiler.config packages.
QE notes:
Doc notes:
Bugs:
Reviewer: Corey (post-commit)
Tests run: checkintests
Is noteworthy for integration: NO
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/ConfigurationPathResolver. java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/DefaultsConfigurator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/FontsConfiguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/FramesConfiguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/LocalFilePathResolver.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/MetadataConfiguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/MxmlConfiguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/NamespacesConfiguration.ja va
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/PathResolver.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/SinglePathResolver.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/AdvancedConfigurationInfo. java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/CommandLineConfigurator.ja va
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationException.jav a
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationFilter.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationInfo.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationValue.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/FileConfigurator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/SystemPropertyConfigurator .java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/ConditionTypeNotSupported.jav a
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/CssCompiler.java
Added Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/package.html
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/package.html
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/package.html -
Getting generated class files using the compiler api??
I am writing a compiler/IDE for java, and i use the new JavaCompiler API
(javax.tools.JavaCompiler)
i want to ask, is it possible to get the generated class file(compiled file) names??
can anyone help me with this, read at the documentation and i have no idea which one is used to do such thing..
Or is it impossible??
Thanks, please guide me on this..E.D.-inc wrote:
I am writing a compiler/IDE for java, and i use the new JavaCompiler API
don't.
i want to ask, is it possible to get the generated class file(compiled file) names??
yes, probably (after all, other tools can do it). Don't ask me how though, I've never had a need to.
can anyone help me with this, read at the documentation and i have no idea which one is used to do such thing..
no. Someone else reading the documentation for you won't help you any. Read it yourself, you might learn something. -
Unable to compile the java class in the SQL PLUS
Hi Team,
I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
What to do for this for your reference ,Attaching the java class file.
“ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
Was expecting one of:
----------------------Here is the Java class Code.....................
create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
as
import java.math.BigDecimal;
import java.util.zip.Deflater;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import oracle.sql.*;
import oracle.jdbc.*;
import java.sql.*;
import java.io.*;
public class XXVM_ZipFileUtil_Ela
public static oracle.sql.BLOB getZipFile(
oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
int fileBufferSize, int zipFileBufferSize,
boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
String zipPathAndFileName = new String(
new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
try
Connection conn = DriverManager.getConnection("jdbc:default:connection:");
oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
String[] fileNamesString = (String[])fileNames.getArray();
BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
for (int i = 0; i < fileNamesString.length; i++) {
System.out.println(i);
zipOut.putNextEntry(new ZipEntry(fileNamesString));
InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
zipOut.closeEntry();
zipOut.close();
byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
int byteCount = zipIn.read(zipFileContents);
zipIn.close();
byte returnFileContents[] = new byte[byteCount];
System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
String returnFileContentsString = new String(returnFileContents);
if (deleteZipFile)
boolean deletedFile = (new File(zipPathAndFileName)).delete();
oracle.sql.BLOB returnFileContentsBLOB = null;
returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
//OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
tempBlobWriter.write(returnFileContents);
tempBlobWriter.flush();
tempBlobWriter.close();
returnFileContentsBLOB.close();
return returnFileContentsBLOB;
catch (IllegalArgumentException ex) {
ex.printStackTrace();
throw ex;
catch (FileNotFoundException ex) {
ex.printStackTrace();
throw ex;
catch (IOException ex)
ex.printStackTrace();
throw ex;
catch (java.sql.SQLException ex)
ex.printStackTrace();
throw ex;860411 wrote:
Hi Team,
I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
What to do for this for your reference ,Attaching the java class file.
“ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
Was expecting one of:
I believe the error message is clear and self-explanatory.
----------------------Here is the Java class Code.....................
create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
as
import java.math.BigDecimal;
import java.util.zip.Deflater;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import oracle.sql.*;
import oracle.jdbc.*;
import java.sql.*;
import java.io.*;
public class XXVM_ZipFileUtil_Ela
public static oracle.sql.BLOB getZipFile(
oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
int fileBufferSize, int zipFileBufferSize,
boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
String zipPathAndFileName = new String(
new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
try
Connection conn = DriverManager.getConnection("jdbc:default:connection:");
oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
String[] fileNamesString = (String[])fileNames.getArray();
BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
for (int i = 0; i < fileNamesString.length; i++) {
System.out.println(i);
zipOut.putNextEntry(new ZipEntry(fileNamesString));
InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
zipOut.closeEntry();
zipOut.close();
byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
int byteCount = zipIn.read(zipFileContents);
zipIn.close();
byte returnFileContents[] = new byte[byteCount];
System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
String returnFileContentsString = new String(returnFileContents);
if (deleteZipFile)
boolean deletedFile = (new File(zipPathAndFileName)).delete();
oracle.sql.BLOB returnFileContentsBLOB = null;
returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
//OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
tempBlobWriter.write(returnFileContents);
tempBlobWriter.flush();
tempBlobWriter.close();
returnFileContentsBLOB.close();
return returnFileContentsBLOB;
catch (IllegalArgumentException ex) {
ex.printStackTrace();
throw ex;
catch (FileNotFoundException ex) {
ex.printStackTrace();
throw ex;
catch (IOException ex)
ex.printStackTrace();
throw ex;
catch (java.sql.SQLException ex)
ex.printStackTrace();
throw ex;
The last two lines above should be
/Srini -
Compilation error: "The definition of base class Application was not found."
Hi,
I imported my Flash Builder 4.6 project to the 4.7 pre-release version. My application use a CustomSystemManager (in order to force the loading of a "TextContainerManager", I'm using latest TextLayoutFramework 3.0.0.29).
I had no error with previous versions (Flex SDK 4.5 and Flex SDK 4.6).
My application is main.mxml :
<myapp:MyApp>
</myapp:MyApp>
myapp/MyApp.as :
package myapp {
import spark.components.Application;
[Frame(factoryClass="skyrockchat.CustomSystemManager")]
public class MyApp extends Application {
public function MyApp() {
super();
myapp/CustomSystemManager.as :
package myapp {
import flashx.textLayout.container.TextContainerManager;
import mx.managers.SystemManager;
public class CustomSystemManager extends SystemManager
public function CustomSystemManager()
var c:Class = TextContainerManager; // force the inclusion of this class
super();
If I right click on the "Application" word and then "Open declaration", the correct class from spark.components is opened...
I don't know if this is a bug or a side effect... ^^The packages of the CustomSystemManager don't seem to match:
[Frame(factoryClass="skyrockchat.CustomSystemManager")] has "skyrockchat" as the package and another place says to put CustomSystemManager in package "myapp".
myapp/CustomSystemManager.as :
package myapp {
When I changed "skyrockchat" to "myapp" the project compiled.
-Darrell -
How to compile the Java classes generated in JAXB
I am using Windows 2000 Operating System. I found a xjc
batch file on the sun's java forum.
I used that to generate classes from XML. After generating
the classes I could not compile
the classes each depends on other AND THEY REQUIRE BOTH
CLASS FILES.
I will attach the schema file and dtd . Can you explaine me the problem.
#<transactions.dtd>
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT transactions (cardtocard*)>
<!ELEMENT cardtocard (tocard, fromcard, fromcardver, amount, transdate, transid)
>
<!ELEMENT tocard (#PCDATA)>
<!ELEMENT fromcard (#PCDATA)>
<!ELEMENT fromcardver (#PCDATA)>
<!ELEMENT amount (#PCDATA)>
<!ELEMENT transdate (#PCDATA)>
<!ELEMENT transid (#PCDATA)>
transactions.xjs
<xml-java-binding-schema>
<element name="transactions" type="class" root="true"/>
<element name="cardtocard" type="class"/>
</xml-java-binding-schema>
XML file
?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
<transactions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="C:\My Documents\Xml\SVTConcord.xsd">
<cardtocard>
<tocard>1111222233334444</tocard>
<fromcard>6666777788889999</fromcard>
<fromcardver>567</fromcardver>
<amount>100.00</amount>
<transdate>2002-06-04 00:00:00.000</transdate>
<transid>1111222202</transid>
</cardtocard>
</transactions>
the XJC compiler for windows is
@echo off
echo JAXB Schema Compiler
echo --------------------
if "%JAVA_HOME%" == "" goto errorJVM
if "%JAXB_HOME%" == "" goto errorJAXB
set JAXB_LIB=%JAXB_HOME%\lib
set JAXB_CLASSES=%JAXB_HOME%\classes
echo %JAVA_HOME%\bin\java.exe -jar %JAXB_LIB%\jaxb-xjc-1.0-ea.jar %1 %2 %3 %4 %5
%JAVA_HOME%\bin\java.exe -jar %JAXB_LIB%\jaxb-xjc-1.0-ea.jar %1 %2 %3 %4 %5
goto end
:errorJVM
echo ERROR: JAVA_HOME not found in your environment.
echo Please, set the JAVA_HOME variable in your environment to match the
echo location of the Java Virtual Machine you want to use.
echo For example:
echo set JAVA_HOME=c:\jdk1.4.0_01
goto end
:errorJAXB
echo ERROR: JAXB_HOME not found in your environment.
echo Please, set the JAXB_HOME variable in your environment to match the
echo location of the JAXB installation directory.
echo For example:
echo set JAXB_HOME=c:\jdk1.4.0_01\jaxb-1.0-ea
:endWhen you compile the generated classes, be sure to put jaxb-rt-1.0-ea.jar in your classpath!
-
How to compile package which contain class outside the package
I am writing a JDBC driver.
I have the following package structure in the folder:
MyDriver
|_manager.jar
|_com
|_ jdbc
|_ HXDriver
|_ HXConnection
|_ HXResultSet
|_ HXStatementIn manager.jar, there is a remote object Interaface(Manager.java) which I need to use inside HXConnection.
My question is how to compile(or/and how to set the classpath)so that I can compile the 4 classes inside jdbc package.
I tried this:
C:\MyDriver>javac -cp .;manager.jar com/hx/jdbc/*.java
However, this does not work, compiler says it cannot find Manager
Please help me.
CheersD:\380 Project\Driver>javac -cp .;manager.jar com\hx\jdbc\*.java
com\hx\jdbc\HXConnection.java:21: cannot find symbol
symbol : class Manager
location: class com.hx.jdbc.HXConnection
private Manager manager;
^
com\hx\jdbc\HXStatement.java:18: cannot find symbol
symbol : class Manager
location: class com.hx.jdbc.HXStatement
private Manager manager;
^
com\hx\jdbc\HXStatement.java:20: cannot find symbol
symbol : class Manager
location: class com.hx.jdbc.HXStatement
public HXStatement(Manager manager){
^
com\hx\jdbc\HXConnection.java:41: cannot find symbol
symbol : class Manager
location: class com.hx.jdbc.HXConnection
manager = (Manager)reg.lookup("manager");
^ -
Ojc will compile the following class. A bug?
I thought that in Java classes cannot be declared protected. ojc will however compile the following class:
protected class aclass
The Sun java compiler prints the following error:
aclass.java:1: modifier protected not allowed here
protected class aclass
Is this a known bug in the Oracle Java compiler?Yes, it seems we have a little bug in OJC, the protected access modifier should only be allowed for member classes. I filed a bug report and I'll fix it.
Thanks!
Keimpe Bronkhorst
JDev Team
Maybe you are looking for
-
Photoshop CS2 will not work with RAW images in the Minolta DimAge A2. It use to work fine
I have used Photoshop CS 2 with my DimAge A2 for over 5 years in the RAW format. Now it will not work with RAW with my camera. I am using Vista 64.Any answers ? Thanks
-
Read xml file in another web server
my question is how to read xml file that in another web server??? my existing code look like that, where the xml file is situated in C drive. <%@ page contentType="text/html"%> <%@ page import="javax.xml.parsers.DocumentBuilderFactory, java
-
Transferring Product Data from SRM 7.0 to SRM-MDM 3.0
Dear SRM-MDM experts, We are running the program BBP_CCM_TRANSFER_CATALOG to transfer product data from SRM 7 to SRM-MDM 3.0 The question we have is after running the program, where do we find the file the XML file which the program has generated so
-
Is there any way you can deautherized 5 computers more than once a year?
Is there any way you can deautherized 5 computers more than once a year?
-
Hi, Could some one give me a step by step data flow for a PPV report. I understand thats its a custom report. Im looking for a generic sample. Thanks Edited by: TEE JAY on Feb 22, 2008 6:59 PM