Btaudio compilation problem help!
I saw on this page : http://www.domenech.org/bt878a-adc/index-e.htm
that if u use the btaudio module (with this page has, and as it says and the kernel too), u can make the system see the bt878 tv tuner as a soundcard and with a little mod in the tuner u can record a sample in 448 KHz!
The problem is that following the instructions in the page didn't worked (for the compile tried: gcc -O2 -DMODULE -D__KERNEL__ -c btaudio.c -isystem /lib/modules/2.6.22-ARCH/build/include) and also tried to compile a new kernel but didn't found the module in menu config.
Does anybody have an idea how this module is compiled?
The module in source : http://www.domenech.org/bt878a-adc/btaudio-0.7.tar
Last edited by TreeMinds (2007-09-22 15:14:46)
It all depends on how your trying to run the .class file. For example
"java 'something'.class" won't work
"java 'something'" will work
Similar Messages
-
JTable Compile problems HELP!!!
I am trying to display a table of results. The results are held in a text file and I can't seem to get this working please can someone help. I am getting an error cannot resolve symbol. Symbol: variable values. Class EventTable
JTable table = new JTable(values, columnNames);
import javax.swing.JTable;
import javax.swing.JScrollPane;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.*;
import java.util.*;
import java.text.*;
public class EventTable extends JFrame {
/** Member class instance used to hold the primary data InputStream. */
private FileInputStream m_EventTableInputStream;
/** Member class instance used to hold the text BufferedReader. */
private BufferedReader m_bufferedReader;
String text;
public EventTable()throws IOException
super("EventTable");
FileReader file = new FileReader("c:\\projects\\FirstSupport\\logfile2.txt");
BufferedReader inputfile = new BufferedReader (file);
Object[] columnNames = {"Event No",
"Time Elapsed",
"Event String",
"Parameter"};
MessageFormat mf = new MessageFormat("Event No:{0,number} Time Elapsed: {1,number} Event String:{2} Parameter:{3,number}");
while ((text = inputfile.readLine()) != null);
System.out.println(text);
Object[] values = mf.parse(text);
int eventNo = ((Number)values[0]).intValue();
double time = ((Number)values[1]).doubleValue();
String eventString = (String)values[2];
int param = ((Number)values[3]).intValue();
JTable table = new JTable(values,columnNames);
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
//Create the scroll pane and add the table to it.
JScrollPane scrollPane = new JScrollPane(table);
//Add the scroll pane to this window.
getContentPane().add(scrollPane, BorderLayout.CENTER);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
private void printDebugData(JTable table) {
int numRows = table.getRowCount();
int numCols = table.getColumnCount();
javax.swing.table.TableModel model = table.getModel();
System.out.println("Value of data: ");
for (int i=0; i < numRows; i++) {
System.out.print(" row " + i + ":");
for (int j=0; j < numCols; j++) {
System.out.print(" " + model.getValueAt(i, j));
System.out.println();
System.out.println("--------------------------");
public static void main(String[] args)throws IOException {
EventTable frame = new EventTable();
frame.pack();
frame.setVisible(true);
}As everyline contains the same headings which I don't want to display These are used as kindof tokenizers to split the file
I had forgotten to add the text line.
Below is the code as it should be
I am totally lost with this. Is there maybe a better way to do it ??
Object[] values;
MessageFormat mf = new MessageFormat("Event No:{0,number} Time Elapsed: {1,number} Event String:{2} Parameter:{3,number}");
text = "Event No: 0 Time Elapsed: 1.0 Event String: Algoritm changed Parameter: algo: Monitoring";
while ((Line = inputfile.readLine()) != null);
System.out.println(text);
values = mf.parse(text);
int eventNo = ((Number)values[0]).intValue();
double time = ((Number)values[1]).doubleValue();
String eventString = (String)values[2];
int param = ((Number)values[3]).intValue();
} -
Hi,
Could someone please help on the above mentioned?
I'm using JDeveloper 3.2.3 for my program development under Chinese windows platform. I have created a simple JSP page, which contains few static Chinese words and I have included the line
<%@ page contentType="text/html;charset=UTF-8"%>
at the top of the page. When I tried to compile it using encoding "UTF8" (under compiler option), the compiler gave me this error:
C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
Error: (0) sun.io.MalformedInputException.
Btw, when I have removed the line <%@ page contentType="text/html;charset=UTF-8"%> from the page and compile, I've got this error:
C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
Warning: (0) ISO-8859-1 character set may not match project compiler setting.
C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java
Error: (0) malformed input character in C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java.
I do appreciate your help on this. Thank you.Here's some info one of the JSP Developers sent me:
1. HELP.....!!!!! Chinese jsp compilation problem.....
The customer is trying to parse a document generated by
Windows's notepad. When saved in UTF-8, the byte
order mark is saved too. We have a know bug that
JSP parser doesn't recognize Byte Order Mark. The
bug is : 1915285.
2. CHINESE CHARACTER ON JSP
. SQLPLUS depends on NLS_LANG setting. If you
check the windows registry, the default of NLS_LANG
depends on the OS. The user environment is Traditional
Chinese, so does NLS_LANG. If we set NLS_LANG
to .UTF8, SQLPLUS dumps the data in UTF8, however,
the command prompt will have problem displaying them.
. For JSP, as mentioned in a previous mail:
<%@ page contentType="text/html;charset=UTF-8" %> for all languages
<%@ page contentType="text/html;charset=GB2312" %> for simplified Chinese
<%@ page contentType="text/html;charset=Big5" %> for traditional Chinese
. When you enter Chinese characters on a browser,
the data is automatically converted to page encoding
(UTF-8 in your case) before sent back to the server.
But your receiving servlet/JSP needs to have request
encoding set correctly.
I'm not sure about the JDeveloper environment,
but here is a simple JSP you may try to verify your
OC4J environment:
a. To set up the schema:
connect scott/tiger
create table tab01(col varchar2(100));
b. Edit the connect string in nls.jsp
c. Run the nls.jsp in oc4j instance.
<!-- nls.jsp -->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="oracle.jdbc.*,java.sql.*,java.io.*"%>
<HTML>
<HEAD>
<TITLE>Hello</TITLE></HEAD>
<BODY>
<%
request.setCharacterEncoding("UTF-8");
String sampledata="\u7D20";
String paramValue = request.getParameter("myparam");
String connStr = "jdbc:oracle:thin:@dlsun478:5521:j2ee01";
String user = "scott";
String passwd = "tiger";
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection(connStr, user, passwd);
if (paramValue == null || paramValue.length() == 0) { %>
<FORM METHOD="GET">
Please input your name: <INPUT TYPE="TEXT" NAME="myparam"
value="<%=sampledata%>" size=20>
<BR>
<INPUT TYPE="SUBMIT" value="Insert Data">
</FORM>
<%
selectData(conn, out);
else
%>
<H1> Insert Data: <%= paramValue %> </H1>
<br/>
<%
insertData(conn, paramValue);
%>
<a href="nls.jsp">back</a>
<%
%>
</BODY>
</HTML>
<%!
public void insertData(Connection aConn, String myval)
try {
PreparedStatement stmt = aConn.prepareStatement("insert into tab01
values(?)");
stmt.setString(1, myval);
stmt.executeUpdate();
aConn.close();
catch (SQLException e) {
e.printStackTrace();
public void selectData (Connection aConn, JspWriter out)
try {
Statement stmt = aConn.createStatement( );
ResultSet r = stmt.executeQuery("SELECT col FROM tab01");
out.println("<H1>List of Data:</H1>");
while (r.next()) {
out.println(r.getString(1)+"<br/>");
aConn.close();
catch (SQLException e) {
e.printStackTrace();
catch (IOException e) {
e.printStackTrace();
%> -
Help!!! I have a compiling problem using rfcsdk
Hello.
I have a compiling problem.
My server is SUN OS 5.9.
And I made a rfcsdk folder.
When I used gcc comiler I had a error message as below.
%>cat mk_gcc2
gcc -funsigned-char -Wcast-align -fPIC -c -I. -I/home/user/rfcsdk_32/include -L/home/user/rfcsdk_32/lib $1.c
gcc -funsigned-char -L/home/user/rfcsdk_32/lib -o $1 $1.o -I/home/user/rfcsdk_32/lib/librfccm.so -laio -lm -lrfc -L. -lsocket -lnsl -lw -ldl
%>
%>
%>mk_gcc2 plantcl
정의되지 않음 첫번째 참조된
기호 파일의
__1cG__CrunKpure_error6F_v_ /home/user/rfcsdk_32/lib/librfc.a(cpictlib.o)
__1cG__CrunKvector_con6FpvIIpF1_vp2_v_ /home/user/rfcsdk_32/lib/librfc.a(cpictlib.o)
__1cG__CrunMex_rethrow_q6F_v_ /home/user/rfcsdk_32/lib/librfc.a(cpictlib.o)
c::c(N6, (int0_t)) /home/user/rfcsdk_32/lib/librfc.a(cpictlib.o)
c::c(n6, (int0_t)) /home/user/rfcsdk_32/lib/librfc.a(cpictlib.o)
__1c2K6Fpv_v_ /home/user/rfcsdk_32/lib/librfc.a(cpictlib.o)
__1c2k6Fpv_v_ /home/user/rfcsdk_32/lib/librfc.a(cpictlib.o)
ld: 치명적: 기호 참조 오류. plantcl에 출력이 기록되지 않음
collect2: ld returned 1 exit status
%>
%>
Do anyone have a idea about this kinds of errors ?
I couldn't find any reference from the internet and documents.
I'll thank you very much if you recommend me.Trying
<description><![CDATA[About 4 PM , March 31,1917.
The salute from the Fort Christian’s Saluting Battery as
the Captain and officers leave the USS Hancock on their way to
shore to take over the Danish West
Indies.]]></description>
This fixes the
onmouseover="ShowToolTip('{dsPhotos::description}') problem,
BUT
<p>{dsPhotos::description}</p>
now appears as
'About 4 PM , March 31,1917. The salute from the Fort
Christian’s Saluting ..."
with the undesireable ’ instead of '.
So my problem requires both html translation and javascript
argument quoting/non-parsing.
Any ideas? -
Re: [iPlanet-JATO] sp3 jsp compiler problem
Weiguo,
First, Matt is correct, the regular expression tool is perfect for general text
substitution situations, and as a completely independent tool its use is not
restricted to migration situations (or file types for that matter).
Second, I sympathize with the unfortunate trouble you are experiencing due to
Jasper's (perhaps more strict) compilation, but in what way did the iMT
automated translation contribute to these inconsistencies that you cited?
1. Changed the case of the tag attribute to be the same as what's
defined in tld.
example: changed OnClick to onClick
The iMT does not generate any OnClick or onClick clauses per se. In a
translation situation, the only way "OnClick" would have been introduced was if
it had been part of the pre-existing project's "extraHTML" (which was written
by the original customer and just passed through unchanged by the iMT) or if it
was added manually by the post-migration developer.
2. Removed attributes which are not defined in tld.
example: escape attribute only defined in three tags
but in some pages, it's used although it's not defined as an
attribute
of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be
similar to the OnClick situation described above?
3. In an end tag, there can't be any space.
example: </content > doesn't work. </content> works.
Again, the content tag would never have been generated by the iMT. There was no
equivalent in the NetDynamics world, so any content tags in your code must have
been introduced by your developers manually. Its a shame that jasper is so
particular, but the iMT could not help you out here even if we wanted to. The
constants that are used by the iMT are defined in
com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can see, the
only situation of a closing tag with any space in it is
public static final String CLOSE_EMPTY_ELEMENT = " />";
But that should not cause the type of problem you are referring to.
Mike
----- Original Message -----
From: Matthew Stevens
Sent: Thursday, September 06, 2001 10:16 AM
Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
Weiguo,
Others will chime in for sure...I would highly recommend the Regex Tool from
the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
posted to the group (even recently) on directions and advantages of creating
your own RULES (rules file) in XML for arbitary batch processing of source.
matt
-----Original Message-----
From: weiguo.wang@b...
[mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174144234026000079108238073194105057099246073154180137239239223019162">weiguo.wang@b...</a>]
Sent: Thursday, September 06, 2001 12:25 PM
Subject: [iPlanet-JATO] sp3 jsp compiler problem
Matt/Mike/Todd,
We are trying to migrate to sp3 right now, but have had a lot of
issues with the new jasper compiler.
The following workaround has been employed to solve the issues:
1. Changed the case of the tag attribute to be the same as what's
defined in tld.
example: changed OnClick to onClick
2. Removed attributes which are not defined in tld.
example: escape attribute only defined in three tags
but in some pages, it's used although it's not defined as an
attribute
of certain tags. The jasper compiler doesn't like it.
3. In an end tag, there can't be any space.
example: </content > doesn't work. </content> works.
As I see it, we have two options to go about solving this problem:
1. Write a script which will iterate through all the jsp files and
call jspc on them. Fix the errors manually when jspc fails. Jspc will
flag the line number where an error occurs.
2. Write a utility which scans the jsp files and fix the errors when
they are encountered. We should define what's an error and how to
correct it. It's best if we combine this with solution 1 since we
might miss an error condition.
Actually, there might be another option, which is seeking help from
you guys since you have better understanding of JATO and iAS. Can you
do anything to help us?
We would be happy to hear your thoughts.
At last, I would like to suggest modifying the moko tool so that
these rules are enforced and the generated JSPs work with the new
compiler. This is for the benefit of any new migration projects.
Thanks a lot.
Weiguo
[email protected]
Choose from 1000s of job listings!
[email protected]
[Non-text portions of this message have been removed]Thanks a lot Matt and Mike for your prompt replies.
I agree completely that iMT doesn't introduce the inconsistencies.
About the three cases I mentioned, the third one happens only in
manually created JSPs. So it has nothing to do with iMT. The first
two are mainly due to the existing HTML code, as you rightly pointed
out.
The reason I made the suggestion is since we know that case 1 and 2
won't pass the japser compiler in sp3, we have to do something about
it. The best place to do this, in my mind, is iMT. Of course, there
might be some twists that make it impossible or difficult to do this
kind of case manipulation or attribute discard.
Weiguo
--- In iPlanet-JATO@y..., "Mike Frisino" <Michael.Frisino@S...> wrote:
Weiguo,
First, Matt is correct, the regular expression tool is perfect for general text substitution situations, and as a completely independent
tool its use is not restricted to migration situations (or file types
for that matter).
>
Second, I sympathize with the unfortunate trouble you are experiencing due to Jasper's (perhaps more strict) compilation, but
in what way did the iMT automated translation contribute to these
inconsistencies that you cited?
>
1. Changed the case of the tag attribute to be the same as what's
defined in tld.
example: changed OnClick to onClick
The iMT does not generate any OnClick or onClick clauses per se. In a translation situation, the only way "OnClick" would have been
introduced was if it had been part of the pre-existing
project's "extraHTML" (which was written by the original customer and
just passed through unchanged by the iMT) or if it was added manually
by the post-migration developer.
>
2. Removed attributes which are not defined in tld.
example: escape attribute only defined in three tags
but in some pages, it's used although it's not defined as an
attribute
of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be similar to the OnClick situation described above?
>
>
3. In an end tag, there can't be any space.
example: </content > doesn't work. </content> works.
Again, the content tag would never have been generated by the iMT. There was no equivalent in the NetDynamics world, so any content tags
in your code must have been introduced by your developers manually.
Its a shame that jasper is so particular, but the iMT could not help
you out here even if we wanted to. The constants that are used by the
iMT are defined in
com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can
see, the only situation of a closing tag with any space in it is
public static final String CLOSE_EMPTY_ELEMENT = " />";
But that should not cause the type of problem you are referring to.
Mike
----- Original Message -----
From: Matthew Stevens
Sent: Thursday, September 06, 2001 10:16 AM
Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
Weiguo,
Others will chime in for sure...I would highly recommend the Regex Tool from
the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
posted to the group (even recently) on directions and advantages of creating
your own RULES (rules file) in XML for arbitary batch processing of source.
>
matt
-----Original Message-----
From: weiguo.wang@b...
[mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174048139046">weiguo.wang@b...</a>]
Sent: Thursday, September 06, 2001 12:25 PM
Subject: [iPlanet-JATO] sp3 jsp compiler problem
Matt/Mike/Todd,
We are trying to migrate to sp3 right now, but have had a lot of
issues with the new jasper compiler.
The following workaround has been employed to solve the issues:
1. Changed the case of the tag attribute to be the same as
what's
defined in tld.
example: changed OnClick to onClick
2. Removed attributes which are not defined in tld.
example: escape attribute only defined in three tags
but in some pages, it's used although it's not defined as an
attribute
of certain tags. The jasper compiler doesn't like it.
3. In an end tag, there can't be any space.
example: </content > doesn't work. </content> works.
As I see it, we have two options to go about solving this problem:
>>
1. Write a script which will iterate through all the jsp files and
call jspc on them. Fix the errors manually when jspc fails. Jspc will
flag the line number where an error occurs.
2. Write a utility which scans the jsp files and fix the errors when
they are encountered. We should define what's an error and how to
correct it. It's best if we combine this with solution 1 since we
might miss an error condition.
Actually, there might be another option, which is seeking help from
you guys since you have better understanding of JATO and iAS. Can you
do anything to help us?
We would be happy to hear your thoughts.
At last, I would like to suggest modifying the moko tool so that
these rules are enforced and the generated JSPs work with the new
compiler. This is for the benefit of any new migration projects.
Thanks a lot.
Weiguo
[email protected]
Choose from 1000s of job listings!
[email protected]
Service.
>
>
>
[Non-text portions of this message have been removed] -
RoboHelp 9 Will Not Compile Web Help
Windows 7 Professional 640-bit
Microsoft Office 2010
RH 9.0.2.271
I have several projects for which I compile Web help.
Compiling the projects has been no problem in the past.
I have made no known changes to the computer or user rights.
Now, RH stops responding when the compile starts. The stop is very early in the process.
I can compile CHM files.
In Output View, I see the following message:
Initializing complier
Generating Webhelp 5.50 (9.0.0.228)…
Error: Can not register active script for language javascript
Template Error: can not resolve macro: RegisterResolvers
Fata Error: Cannot run macro: Register Resolvers in compilation.
While searching for an answer, I tried the following without success:
Note: I am an administrator on the computer. I have always been an admin on the computer.
I have not uninstalled/reinstalled RH so there should be no issues with administrator privileges.
I ran the RH executable as an administrator using a variety of methods like right-click RoboHTML.exe and click Run as Administrator.
Project is on local drive.
Created a new project.
Compiled the sample projects contained in RH.
Created a new SSL.
Create a new target folder for the output.
Copy the LNG file from the "!Language\<current-project-language>" folder to the project folder.
From the project settings dialog, change the project language to a different language, and then change it back to the current language.
Deleted CPD file.
Deleted !Language! folder.
Word macro security is Enable all macros.
Can anyone help me find something I have not tried.First I have often found that Deactivate becomes enabled if you wait a while after opening.
Search on these two lines from your first post.
Template Error: can not resolve macro: RegisterResolvers
Fata Error: Cannot run macro: Register Resolvers in compilation.
(Was it really Fata rather then Fatal?)
Maybe you haven't changed rights but have IT done so without your knowledge?
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Servlet Compilation Problem !
Hi,
I am just starting to learn servlets and I got problem in compiling them. I got compilation error in
import javax.servlet.*;statement. Seems that the compiler cannot find the servlet package. I got J2EE 1.4 beta installed on my machine but there is no servlet.jar package. I am using J2SDK 1.4.1_02, J2EE 1.4 beta and Tomcat 4.1.24.
Can anyone help me with my servlet compilation problem?
Thanks in advance!
Joshservlet.jar is here :
<tomcatdir>\common\lib
add it to your compiler classpath -
Compilation problem on solaris9 x86
I am working on JAVA/J2EE . Am new to solaris9 . My requirement is to compile a source distribution of MOD-JK 1.2.21 (apache 2.0 server connector)and to produce binary distribution (*.so file) in solaris9 X86 box. But i got only source distribution of solaris10 X86 platform . Even with this source i tried to compile in solaris9 box its giving some error message and i can't able to make a executable file. Below i pasted the error message .
# ./configure -with-apxs=/usr/apache2/bin/apxs
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for a BSD-compatible install... scripts/build/unix/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... no
checking for gcc... no
checking for cc... cc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Can any body help me in this regards. Even i don't know, am proceeding in right direction to compile this file. If any body having the binary distribution for the same MOD-JK1.2.21 on solaris9 or solaris10 X86 platform for apache2.0 . please help me to compile this file .I given below the config.log file entries also.
Thanks in advance..........
karthikeyan.u
[email protected]
AIM or AOL :: karthikeyanu
CONFIG.log entries......
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure -with-apxs=/usr/apache2/bin/apxs
## Platform. ##
hostname = Solaris
uname -m = i86pc
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_118844-26
/usr/bin/uname -p = i386
/bin/uname -X = System = SunOS
Node = Solaris
Release = 5.10
KernelID = Generic_118844-26
Machine = i86pc
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
/bin/arch = i86pc
/usr/bin/arch -k = i86pc
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/openwin/bin
PATH: /usr/ucb
## Core tests. ##
configure:1546: checking build system type
configure:1564: result: i386-pc-solaris2.10
configure:1572: checking host system type
configure:1586: result: i386-pc-solaris2.10
configure:1594: checking target system type
configure:1608: result: i386-pc-solaris2.10
configure:1640: checking for a BSD-compatible install
configure:1695: result: scripts/build/unix/install-sh -c
configure:1706: checking whether build environment is sane
configure:1749: result: yes
configure:1814: checking for gawk
configure:1843: result: no
configure:1814: checking for mawk
configure:1843: result: no
configure:1814: checking for nawk
configure:1830: found /usr/bin/nawk
configure:1840: result: nawk
configure:1850: checking whether make sets $(MAKE)
configure:1874: result: no
configure:2085: checking for gcc
configure:2114: result: no
configure:2165: checking for cc
configure:2181: found /usr/ucb/cc
configure:2191: result: cc
configure:2355: checking for C compiler version
configure:2358: cc --version </dev/null >&5
/usr/ucb/cc: language optional software package not installed
configure:2361: $? = 1
configure:2363: cc -v </dev/null >&5
/usr/ucb/cc: language optional software package not installed
configure:2366: $? = 1
configure:2368: cc -V </dev/null >&5
/usr/ucb/cc: language optional software package not installed
configure:2371: $? = 1
configure:2394: checking for C compiler default output file name
configure:2397: cc conftest.c >&5
/usr/ucb/cc: language optional software package not installed
configure:2400: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mod_jk"
| #define VERSION "1.2.21"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2439: error: C compiler cannot create executables
See `config.log' for more details.
## Cache variables. ##
ac_cv_build=i386-pc-solaris2.10
ac_cv_build_alias=i386-pc-solaris2.10
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i386-pc-solaris2.10
ac_cv_host_alias=i386-pc-solaris2.10
ac_cv_prog_AWK=nawk
ac_cv_prog_ac_ct_CC=cc
ac_cv_prog_make_make_set=no
ac_cv_target=i386-pc-solaris2.10
ac_cv_target_alias=i386-pc-solaris2.10
## Output variables. ##
ACLOCAL='${SHELL} /export/home/dump_208/workspace_SB_563/modjk/ModJK1/modjk/jkk/tomcat-connectors-1.2.21-src/native/scripts/build/unix/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /export/home/dump_208/workspace_SB_563/modjk/ModJK1/modjk/jkk/tomcat-connectors-1.2.21-src/native/scripts/build/unix/missing --run tar'
APACHE20_OEXT=''
APACHE_CONFIG_VARS=''
APACHE_DIR=''
APXS=''
APXSCFLAGS=''
APXSCPPFLAGS=''
APXSLDFLAGS=''
AR=''
AUTOCONF='${SHELL} /export/home/dump_208/workspace_SB_563/modjk/ModJK1/modjk/jkk/tomcat-connectors-1.2.21-src/native/scripts/build/unix/missing --run autoconf'
AUTOHEADER='${SHELL} /export/home/dump_208/workspace_SB_563/modjk/ModJK1/modjk/jkk/tomcat-connectors-1.2.21-src/native/scripts/build/unix/missing --run autoheader'
AUTOMAKE='${SHELL} /export/home/dump_208/workspace_SB_563/modjk/ModJK1/modjk/jkk/tomcat-connectors-1.2.21-src/native/scripts/build/unix/missing --run automake-1.9'
AWK='nawk'
CC='cc'
CCDEPMODE=''
CFLAGS=''
CP=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INSTALL_TYPE=''
JAVA_HOME=''
JK_JNI_WORKER=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIB_JK_TYPE=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /export/home/dump_208/workspace_SB_563/modjk/ModJK1/modjk/jkk/tomcat-connectors-1.2.21-src/native/scripts/build/unix/missing --run makeinfo'
MAKE_DYNAMIC_APACHE_FALSE=''
MAKE_DYNAMIC_APACHE_TRUE=''
MKDIR=''
OBJEXT=''
OS=''
PACKAGE='mod_jk'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL=''
RANLIB=''
RM=''
SED=''
SET_MAKE='MAKE=make'
SHELL='/bin/bash'
STRIP=''
TEST=''
VERSION='1.2.21'
WEBSERVER=''
ac_ct_AR=''
ac_ct_CC='cc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
apache_include=''
bindir='${exec_prefix}/bin'
build='i386-pc-solaris2.10'
build_alias=''
build_cpu='i386'
build_os='solaris2.10'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i386-pc-solaris2.10'
host_alias=''
host_cpu='i386'
host_os='solaris2.10'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/export/home/dump_208/workspace_SB_563/modjk/ModJK1/modjk/jkk/tomcat-connectors-1.2.21-src/native/scripts/build/unix/install-sh'
int32_t_fmt=''
int32_value=''
int64_t_fmt=''
int64_value=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='$(install_sh) -d'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i386-pc-solaris2.10'
target_alias=''
target_cpu='i386'
target_os='solaris2.10'
target_vendor='pc'
uint32_t_fmt=''
uint32_t_hex_fmt=''
uint64_t_fmt=''
uint64_t_hex_fmt=''
## confdefs.h. ##
#define PACKAGE "mod_jk"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "1.2.21"
configure: exit 77You need to make sure the source is for the same version i.e. if you run apache 2.0.52 you need the source of 2.0.52. I successfully ran mixed installs, but I would not recommend it. You can download the required source from Apache.
As for your compiler problem, make sure you have �/usr/ccs/bin/� in the your path, if you do not have it installed you will have to add the pkg �SUNWsprot�. You do not have 'make' in yout path.
Make sure you have the following packages installed:
SUNWbtool, SUNWsprot, SUNWtoo
SUNWhea, SUNWarc, SUNWlibm, SUNWlibms
SUNWdfbh, SUNWcg6h, SUNWxwinc, SUNWolinc,
SUNWxglh,SUNWarcx, SUNWbtoox, SUNWdplx,
SUNWscpux, SUNWsprox, SUNWlmsx, SUNWlmx
SUNWlibCx, SUNWtoox, SUNWsra, SUNWsrh -
Pro*Cobol PCO Compilation problem in Linux
Hi,
DB :oracle 11g on RHEL 5.5
when we are compiling the (Pro*cobol ) PCO code it is giving us the error :
System default option values taken from: /oracle/oracle11g/app/product/11.2.0/dbhome_1/precomp/admin/pcbcfg.cfg
Error at line 320, column 35 in file BR2385.PCO
WHERE A.SOC_NO = :PARAM-SOC
..................................1
PCB-S-00223, Undeclared variable "PARAM-SOC".
when we change the pcbcfg.cfg file with flag : declare_section=no it's compile without error.
But in this scenario cobol app doesn't run.
if we declare the undeclared variable in the section
EXEC SQL BEGIN DECLARE SECTION END-EXEC.
PARAM-SOC PIC X(25).
EXEC SQL END DECLARE SECTION END-EXEC.
and compile it with declare_section=yes then cobol app. run fine.
Are different files generated (cob,int,gnt) after compilation with the option declare_section=no and declare_section=yes.
Pls help us in this regards. we have lot of file which having these issue and we don't want to do manual changes "EXEC SQL BEGIN" in it.
Thanks in advance..Your code is faulty and has to be fixed.
No compilation problem is present, the compiler correctly barfs.
As this is not a support forum, kindly keep your non-issues out of this forum.
Thank you!!!
Sybrand Bakker
Senior Oracle DBA -
Compiling problem in oracle 11g environment
Hello mates,
We have recently migrated from oracle10g to oracle11g. we have lot of pro*c and forms programs.
my requirement is to compile all those pro*c and form programs in 11g.
for compiling pro*c programs we have compilation scripts. these compilation scripts are prepared
based on oracle10g. pro*c programs are compiling fine by using this compilation scripts.
after migrated to 11g, ihave used same 10g compilation scripts to compile pro*c programs.
1.while compiling the programs first time, i got these errors
/oracle/app/product/11.2.0.3_cli/lib32/libsql10.a: No such file or directory
/oracle/app/product/11.2.0.3_cli/rdbms/lib32/kpudfo.o: No such file or directory
/oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory
/oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory
/oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory
so i have replace all libsql10.a,libpls10.a,libpls10.a,libpls10.a to libsql11.a,libpls11.a,libpls11.a,libpls11.a
2.then these errors got resolved but second time compilation it shown below error.
/oracle/app/product/11.2.0.3_cli/rdbms/lib/kpudfo.o: No such file or directory
so i have removed kpudfo.o file from compilation script.
3. i have compiled third time then it shown diffrent error as shown below
ld: fatal: library -lnapt: not found
ld: fatal: file /oracle/app/product/11.2.0.3_cli/lib/libclntsh.so: wrong ELF class: ELFCLASS64
ld: fatal: file /oracle/app/product/11.2.0.3_cli/rdbms/lib/cdf.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to ./ebsparam
i have changed script
"/usr/local/bin/gcc -m32 -g -DSOLARIS -DSOLARIS2 -I$HOME/include"
to
"/usr/local/bin/gcc -m64 -g -DSOLARIS -DSOLARIS2 -I$HOME/include"
4. then i have compiled again then it shown error as below
ld: fatal: file /usr18/SIR02551/mydomain/BD/obj/ebsparam.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to ./ebsparam
collect2: ld returned 1 exit status
because of 32 bit problem i have changed script to 32 to 64. but now it is showing this error
what is the problem i am not able to understand.
please help on this
Thanks
Edited by: ramadurga.v on Jan 25, 2013 3:10 PM
Edited by: ramadurga.v on Jan 25, 2013 3:26 PMPl do not post duplicates -
Compilaton problem in 11g environment
Compilation problem in 11g environment
Compilation problem in 11g environment -
RE: RE : Compile problems
Doug,
I also had a very similar error. At first I thought it might have been
similar to the technote 38525, but in the end I force compiled the workspace
and re made the distribution and the fcompile worked like normal. So if you
don't think the technote matches your situation then I recommend force
compiling your workspace.
Regards,
Allister
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Ajith Kallambella
Sent: Thursday, 6 May 1999 23:01
To: [email protected]; [email protected]
Subject: RE : Compile problems
Doug,
Your method is probably returning a data type that the codegenerator
is misinterpreting.
It could be related to a documented problem where a return statement
returning an unsigned long( or a few other type ) value generates a
GENERICRETURN instruction, which codegen erroneously believed
to have no
operands, causing decompilation errors.
Take a look at Bug # 38525.
The suggested work around is not to return unsigned long( or a few other
data types ).
Ajith Kallambella M
Subject: Compile problems
Has anyone ever seen this error when using fcompile to compile their
partitions?? The create/compile of the workspace & the
partitioning of the
application all went fine. It seems to indicate there may be a
problem with
the fetchEncounterWithItsClaim method. What's the IRBlock ?? Any
help would
be greatly appreciated!!
Processing partition generation file:
/usr/local/bin/forte3j/appdist/hcssdeve/hcssmain/cl27/codegen/hcss
ma8/hcssma
8.pgf
Creating and initializing code generator, this could take some time.
ERROR: Exiting due to following exception:
SYSTEM ERROR: Client partition FTCompile_cl0_Client was terminated by
escaped
exception. See the remainder of the error stack for more information.
Class: qqsp_ResourceException
Error #: [1001, 3]
Detected at: qqrt_ForteExecAgent::LoadPartition at 1
Error Time: Wed May 5 17:38:50
Exception occurred (locally) on partition "Forte_Executor",
(partitionId
=
25771770-033B-11D3-9BC9-A45FAEA2AA77:0x1, taskId =
[25771770-033B-11D3-9BC9-A45FAEA2AA77:0x1.6]) in application
"FTCompile_cl0", pid 13061 on node gromit.HealthPartners.com in
environment <unknown>.
SYSTEM ERROR: Variable index 71 is outside the range 0 to 26 for the
IRBlock fetchEncounterWithItsClaim.
Class: qqsp_Exception
Error #: [1001, 203]
Detected at: qqrt_IRBlock::GetTypeIndex at 1
Last TOOL statement: method ForteCompiler.ProcessPGF
Error Time: Wed May 5 17:38:50
Exception occurred (locally) on partition "Forte_Executor",
(partitionId =
25771770-033B-11D3-9BC9-A45FAEA2AA77:0x1, taskId =
[25771770-033B-11D3-9BC9-A45FAEA2AA77:0x1.6]) in application
"FTCompile_cl0", pid 13061 on node gromit.HealthPartners.com in
environment <unknown>.
Doug Scurr
HealthPartners
8100 34th Avenue South
9th Floor
Minneapolis, MN 55440-1309
(612)883-7317
- att-1.unk
Get Free Email and Do More On The Web. Visit <a href=
"http://www.msn.com">http://www.msn.com</a>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>Allister,
That's the only thing(force compile) I could think of to try, so I did & re
made the distribution last night & it worked fine!!
Doug Scurr
HealthPartners
8100 34th Avenue South
9th Floor
Minneapolis, MN 55440-1309
(612)883-7317
-----Original Message-----
From: Allister Dickson [SMTP:[email protected]]
Sent: Friday, May 07, 1999 1:23 AM
To: Ajith Kallambella; [email protected];
[email protected]
Subject: RE: RE : Compile problems
Doug,
I also had a very similar error. At first I thought it might have
been
similar to the technote 38525, but in the end I force compiled the
workspace
and re made the distribution and the fcompile worked like normal. So
if you
don't think the technote matches your situation then I recommend
force
compiling your workspace.
Regards,
Allister
> -----Original Message-----
> From: [email protected]
> [<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Ajith
Kallambella
> Sent: Thursday, 6 May 1999 23:01
> To: [email protected]; [email protected]
> Subject: RE : Compile problems
>
>
> Doug,
>
> Your method is probably returning a data type that the
codegenerator
> is misinterpreting.
>
> It could be related to a documented problem where a return
statement
> returning an unsigned long( or a few other type ) value generates
a
> GENERICRETURN instruction, which codegen erroneously believed
> to have no
> operands, causing decompilation errors.
>
> Take a look at Bug # 38525.
>
> The suggested work around is not to return unsigned long( or a few
other
> data types ).
>
>
> Ajith Kallambella M
>
>
> Subject: Compile problems
>
>
> Has anyone ever seen this error when using fcompile to compile
their
> partitions?? The create/compile of the workspace & the
> partitioning of the
> application all went fine. It seems to indicate there may be a
> problem with
> the fetchEncounterWithItsClaim method. What's the IRBlock ?? Any
> help would
> be greatly appreciated!!
>
> Processing partition generation file:
> /usr/local/bin/forte3j/appdist/hcssdeve/hcssmain/cl27/codegen/hcss
> ma8/hcssma
> 8.pgf
> Creating and initializing code generator, this could take some
time.
> ERROR: Exiting due to following exception:
>
> SYSTEM ERROR: Client partition FTCompile_cl0_Client was terminated
by
> escaped
> exception. See the remainder of the error stack for more
information.
> Class: qqsp_ResourceException
> Error #: [1001, 3]
> Detected at: qqrt_ForteExecAgent::LoadPartition at 1
> Error Time: Wed May 5 17:38:50
> Exception occurred (locally) on partition "Forte_Executor",
> (partitionId
> =
> 25771770-033B-11D3-9BC9-A45FAEA2AA77:0x1, taskId =
> [25771770-033B-11D3-9BC9-A45FAEA2AA77:0x1.6]) in application
> "FTCompile_cl0", pid 13061 on node gromit.HealthPartners.com
in
> environment <unknown>.
>
> SYSTEM ERROR: Variable index 71 is outside the range 0 to 26
for the
> IRBlock fetchEncounterWithItsClaim.
> Class: qqsp_Exception
> Error #: [1001, 203]
> Detected at: qqrt_IRBlock::GetTypeIndex at 1
> Last TOOL statement: method ForteCompiler.ProcessPGF
> Error Time: Wed May 5 17:38:50
> Exception occurred (locally) on partition
"Forte_Executor",
> (partitionId =
> 25771770-033B-11D3-9BC9-A45FAEA2AA77:0x1, taskId =
> [25771770-033B-11D3-9BC9-A45FAEA2AA77:0x1.6]) in
application
> "FTCompile_cl0", pid 13061 on node
gromit.HealthPartners.com in
> environment <unknown>.
>
> Doug Scurr
> HealthPartners
> 8100 34th Avenue South
> 9th Floor
> Minneapolis, MN 55440-1309
> (612)883-7317
>
>
> - att-1.unk
>
>
> _______________________________________________________________
> Get Free Email and Do More On The Web. Visit <a href=
"http://www.msn.com">http://www.msn.com</a>
> -
> To unsubscribe, email '[email protected]' with
> 'unsubscribe forte-users' as the body of the message.
> Searchable thread archive
<URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>> -
Compiling problem related to library conflict
Hi everybody,
As I used JDeveloper 10.1.3.0.3 to compile my program, I encounted a compiling problem.
In my user library, I have a class named Number.
In J2SE 1.5, there is also a class named Number at java.lang.Number.
So as I compiled the program, the compiler always tried to find the java.lang.Number first, then I got the compiling errors related to the class java.lang.Number.
I have added the jar file of my own package in the classpath, but I still got the compiling error.
But If I directly use JDK instead of JDeveloper to compiler the program, there is no such kind of problem.
Can somebody help me with that.
I really apprecaite your help.
WilliamLooks like I've been dumbed down by Java simpliciy. I'm referencing some source code that calls a function from this particular library. When I am compiling my code that makes the same call, I assume I need that library to be called out for the linker (link.exe). Do I also need any other libraries that this library calls and so on? How do I determine that the extent of what I need. The source code I'm referncing does include a make file. This was to create and exe file. Is it possible that I can edit this and have it make a dll instead?
-
JSP Compilation Problems With JSTL tags
My JSP worked well when I used JSP expressions, scriptlets, .... I tried to use JSTL instead and encountered some compilation problems. I am unable to see my mistakes and need help:
Problme #1:
int offset = 0;
try
<c:set var="offset" value="${requestScope.offset}" />
catch ( Exception e )
// do nothing
}The above code has two compilation errors:
Generated servlet error:
[javac] Compiling 1 source file
illegal start of expression
<c:set var="offset" value="${requestScope.offset}" />
^
Generated servlet error:
';' expected
<c:set var="offset" value="${requestScope.offset}" />
^
Problem #2:
<c:set var="threadBean" value="${requestScope.ThreadBean}" />
int threadID_int = ParamUtil.getParameterInt( request, "thread" );
<c:if test="${threadBean.threadID} != threadID_int">
throw new AssertionException( "The two threadID are not the same." );
</c:if>Generated servlet error:
illegal start of expression
<c:if test="${threadBean.threadID != threadID_int}">
^I have deleted the Java code around the JSTL tags. Now, what is wrong with this <c:if test=" ... "> tag? It seems that I have problems to get JSTL tags right.
It seems that I have problems to get JSTL tags right....
<c:if test="${attachBean.attachMimeType.startsWith('image/')}">
<html:img page="getattachment?attach=<c:out value='${attachBean.attachID}' />" alt="<c:out value='${attachBean.attachFilename}' />" title="<c:out value='${attachBean.attachFilename}' />" border="0" />
</c:if>error message:
74: tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${attachBean.attachMimeType.startsWith('image/')}": Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"] -
Removing compiler problem markers
Does anybody know why I keep getting a pop up window that is
telling me it can't find a marker id at some location number? I am
getting one of these messages about every other time I save and
compile and it is getting RATHER ANNOYING!!! What does it mean and
how do I eliminate it???
Thanks in advance for helping me lower my blood pressure!!!
Have an Ordinary Day...
KomputerMan ~|:-)Yes, I am now getting the same error - but slightly different
wording
Removing compile problem markers (Time of error: blah blah
blah...)
The details section states:
An internal error occurred during "Removing compiler problem
markers".
java.lang.NullPointerException
I'm able to compile the same code with no problem from the
command line on a Linux box. Running the clean comand doesn't fix
this unfortunately.
Some background info: I'm running a FDS project against a
JBoss server on a windows XP machine.
So, I deleted my project and shut down flex builder. Then
removed the project files (.actionScriptProperties, .project, &
.flexProperties) and removed the project folder from the flex.war
folder in the jboss server. Restarted Flex Builder and created a
new project the same way the project was built. And wa-la the
problem is gone.
So, something has gone bad with the project, but I am not
sure what because a look a the previous project files and they all
seem normal. I was having problems with the project trying to
create the "Output Directory" early, but a rebuild of the project
seemed to fix that too.
hope this helps.
--Andy -
J2ME - RMS - Record Enumeration - compilation problem
Hi,
Im trying to create RMS with Record Enumeration. Able to open a recordstore & write a record in it; while reading the record with record enumeration, im assigning the recordstore object to enumeration. Here compilation problem occurs. Im attaching the code which im working. Please help me to solve this issue.
import javax.microedition.midlet.*;
import javax.microedition.rms.*;
import javax.microedition.lcdui.*;
import java.io.*;
public class RecordEnumeration extends MIDlet implements CommandListener
private Display display;
private Alert alert;
private Form form;
private Command cmdOpen, cmdWrite, cmdRead, cmdClose, cmdDelete, cmdExit;
private RecordStore rs = null;
private RecordEnumeration re = null;
public RecordEnumeration()
display = Display.getDisplay(this);
cmdOpen = new Command("Open", Command.SCREEN, 1);
cmdWrite = new Command("Write", Command.SCREEN, 1);
cmdRead = new Command("Read", Command.SCREEN, 1);
cmdClose = new Command("Close", Command.SCREEN, 1);
cmdDelete = new Command("Delete", Command.SCREEN, 1);
cmdExit = new Command("Exit", Command.SCREEN, 1);
form = new Form("RecordEnumeration");
form.addCommand(cmdOpen);
form.addCommand(cmdWrite);
form.addCommand(cmdRead);
form.addCommand(cmdClose);
form.addCommand(cmdDelete);
form.addCommand(cmdExit);
form.setCommandListener(this);
public void startApp()
display.setCurrent(form);
public void pauseApp()
public void destroyApp(boolean unconditional)
public void commandAction(Command cmd, Displayable displayable)
if(cmd == cmdExit)
destroyApp(true);
notifyDestroyed();
else if(cmd == cmdOpen)
try
rs = RecordStore.openRecordStore("RecordEnumeration", true);
System.out.println("Opening Record");
catch(Exception err)
alert = new Alert("Err Opening", err.toString(), null, AlertType.WARNING);
alert.setTimeout(Alert.FOREVER);
display.setCurrent(alert);
else if(cmd == cmdWrite)
try
String StringOutput[] = {"First Record", "Second Record", "Third Record"};
for (int x = 0; x < 3; x++)
byte[] byteOutputData = StringOutput[x].getBytes();
rs.addRecord(byteOutputData, 0, byteOutputData.length);
System.out.println("Record "+ x +" Added");
catch (Exception err)
alert = new Alert("Err Writing", err.toString(), null, AlertType.WARNING);
alert.setTimeout(Alert.FOREVER);
display.setCurrent(alert);
else if(cmd == cmdRead)
try
StringBuffer buffer = new StringBuffer();
re = rs.enumerateRecords (null, null, false);
while (re.hasNextElement())
buffer.append(new String(re.nextRecord()));
buffer.append("\n");
alert = new Alert("Enumeration", buffer.toString(), null, AlertType.WARNING);
alert.setTimeout(Alert.FOREVER);
display.setCurrent(alert);
System.out.println("Reading");
catch(Exception err)
alert = new Alert("Err Reading", err.toString(), null, AlertType.WARNING);
alert.setTimeout(Alert.FOREVER);
display.setCurrent(alert);
else if(cmd == cmdClose)
try
rs.closeRecordStore();
System.out.println("Closed");
catch(Exception err)
alert = new Alert("Err Closing", err.toString(), null, AlertType.WARNING);
alert.setTimeout(Alert.FOREVER);
display.setCurrent(alert);
else if(cmd == cmdDelete)
try
RecordStore.deleteRecordStore("RecordEnumeration");
re.destroy();
System.out.println("Deleted");
catch(Exception err)
alert = new Alert("Err Deleting", err.toString(), null, AlertType.WARNING);
alert.setTimeout(Alert.FOREVER);
display.setCurrent(alert);
These are the error which im getting while compiling in WTK.
C:\WTK2.5.1\apps\WritingMixedData\src\RecordEnumeration.java:60: incompatible types
found : javax.microedition.rms.RecordEnumeration
required: RecordEnumeration
RecordEnumeration re = rs.enumerateRecords(null,null,false);
^
C:\WTK2.5.1\apps\WritingMixedData\src\RecordEnumeration.java:99: cannot find symbol
symbol : method hasNextElement()
location: class RecordEnumeration
while (re.hasNextElement())
^
C:\WTK2.5.1\apps\WritingMixedData\src\RecordEnumeration.java:101: cannot find symbol
symbol : method nextRecord()
location: class RecordEnumeration
buffer.append(new String(re.nextRecord()));
^
C:\WTK2.5.1\apps\WritingMixedData\src\RecordEnumeration.java:136: cannot find symbol
symbol : method destroy()
location: class RecordEnumeration
re.destroy();
^
4 errors
Advices are welcome. Thanks in advance.
-SinguHi Guys,
J2ME TECHNOLOGIES
I created a record store and inserted record date "random" into it using the following code.
RecordStore rs = null;
try {
rs = RecordStore.openRecordStore( "myrs",true);
//rs = RecordStore.openRecordStore( "myrs",false );
rs.setMode(1,true);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(baos);
try{dos.writeUTF("random");}catch(Exception e){}
byte[] b = baos.toByteArray();
rs.addRecord(b, 0, b.length);
}catch(Exception e){}
I executed this MIDLET TO INSERT.
I closed the application and tried to look for the physical db file inside my application folder where i couldnt find it.
Then i tried to read the data from RECORD STORE myrs using the the same MIDlet by editing the aboe code as follows
RecordStore rs = null;
try {
rs = RecordStore.openRecordStore( "myrs",false);
byte[] recData = new byte[10];
ByteArrayInputStream bais = new ByteArrayInputStream(recData);
DataInputStream dis = new
DataInputStream(bais);
rs.getRecord(1, recData, 0);
try{System.out.println("UTF: " + dis.readUTF());}catch(Exception e){}
System.out.println("--------------------");
} catch( RecordStoreException e ){// couldn't open it or create it
System.out.println("data base creation error"+e);
But when i executed it the error occured
microedition.rms.RecordStoreNotFoundException: cannot find record store file
My question in my first code ive created the data store and inserted the values into my recordstore myrs
Then when i edit the code for creation into reading from the record store why the error occurs.Does the Midlet store the record store Temporarirly ONLY till the MIDLET LIFECYCLE.
IF SO what is the method and code to store the RECORD STORE PERMANENTLLY EVEN AFTER THE MIDLET EXECUTION QUITS.
///////////////////////kARTHEE
Maybe you are looking for
-
Non root user can delete root files, bug?
We're having an odd permissions based problem on Solaris 10 u5 x86_64, (new install, fully patched as of 2 days ago) It means that non root users can delete root owned files, which is something I've never seen before, and I've been doing this for alm
-
using LabVIEW 7.1 I want to list and read several files in a certain directory. I want to recursively search and read these files starting from a root-directory, however the directory-path at some point contains illegal characters, probably because
-
Import/Export Legal Regulation Control w/ One Legal Regulation
Hi, In a separate thread, Dhillipan helped me configure a legal regulation using Country/Country Group (config activity: Activate Legal Regulations at Country/Country Group Level) which was very helpful to restrict Sales Orders / Deliveries from a sp
-
I have tried all suggested Privacy fixes to stop pop-up ads and pages. None seem to work. Virtually EVERYTIME I go to a specific webpage Firefox opens a second web page for some advertisement. Also, on these pop-up pages, as well as original, there a
-
Gzip and FTP datafiles in one step
Gzip and FTP datafiles in one step i have 10 datafiles in a single dir. which are between 2GB and 3GB and i want to transfer it to another host using FTP. I want to do the following: 1. gzip all the datafiles 2. FTP them to target server i want to ac