EJB Class loader and regular Java files class loader.
Hi,
Is the EJB's class loader the same as a "regular" java files class loader OR weblogic
has 2 class loaders, one for each???
Thanks,
les.
les <[email protected]> wrote:
Hi,
Is the EJB's class loader the same as a "regular" java files class loader OR weblogic
has 2 class loaders, one for each???Yes. Exact classloading architecture depends on which WebLogic version you use. If you
use 6.x+, you may want to read this article:
http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html
Thanks,
les.--
Dimitri
Similar Messages
-
How to load and define Java Store Procedures using Consolidator Manager??
Hi,
I am trying to create a store procedure with a very easy example and I can not succeed. i am a bit new with OLite and I will appreciate any help from your side. I am quite lost now regarding of using java with OLite and it is becoming quite urgent for me. Thanks a lot in advanced.
Those are the steps that I follow:
- Creating the java class
I create the java file MYUPPER.java with next code :
public class MYUPPER {
public static String doUpper( String p_text )
return p_text.toUpperCase();
I compile it and I create the jar file:
C:\>javac MYUPPER.java
C:\>jar cf MYUPPER.jar MYUPPER.class
- This is an abstract of my java code using the API:
( m_cm is ConsolidatorManager)
// Create the java resource
m_cm.createStoredProc( "MYUPPER.jar", "MYUPPER", "doUpper", "doUpper");
// Add it to the publication
m_cm.addJavaResource( "PMTS", "MYUPPER" );
- After running that code I do not receive any exception and checking into the repository looks ok:
a) From the Mobile Server I can see the Java Ressource MYUPPER for that publication
b) I can see the entries in C$Resouces and in C$Pub_Objects as well
*** ON THE CLIENT:
Then I go to the client device a Windows XP labtop where I did install the jre 5.0 and I added the bin path to the system variable PATH.
- I get a POL-8000 error when synchronizing (could not start the Java Visrtual Machine)
- Anyway, I can see the MYUPPER.class file deployed in the same directory than the databases are.
- I have also tried next from msql:
c:\>msql system/manager@jdbc:polite:tomeu_conscli
Oracle Lite MSQL Version 10.3.0.2.0
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Connected to: Oracle Lite ORDBMS
Database Name: CONSCLI (Read Write)
Database Version: 10.3.0.2.0
Auto Commit: off
Driver Name: oracle.lite.poljdbc.POLJDBCDriver (OLite 4.0)
SQL> select * from c$resources;
PUB_NAME | DB_NAME | RESOURCE_NAME | RESOURCE_TYPE | RESOURCE_DATA
PMTS | pmts | MYUPPER | JAVA CLASS | -¦¦¥ 1
1 row(s) returned
SQL>
SQL> exit
Disconnected from CONSCLI
c:\>msql system/*****@jdbc:polite:tomeu_pmts
Oracle Lite MSQL Version 10.3.0.2.0
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Connected to: Oracle Lite ORDBMS
Database Name: PMTS (Read Write)
Database Version: 10.3.0.2.0
Auto Commit: off
Driver Name: oracle.lite.poljdbc.POLJDBCDriver (OLite 4.0)
SQL> select doUpper('fhjdjf') from dual;
[POL-8035] no such attribute or method
SQL> create table sp (id number(1) primary key );
Table created
SQL> alter table sp attach java source "MYUPPER" in '.';
[POL-8028] error in calling a Java method
SQL> commit;
Commit complete
SQL> select sp.doUpper('fhjdjf') from dual;
[POL-8035] no such attribute or method
Lost... :(
Tomeusorry to bother, similar like above, i tried many times on my computer to load a simple image in java application.. here's my code:
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import java.net.*;
import javax.swing.*;
public class View extends JFrame {
private URL imageURL;
private File file;
private Image sourceImage;
private String name, title, message;
private int width, height;
public static void main(String[] args) {
System.out.println( "Hello Eros!!!" );
View img = new View();
public View() {
name = "D:/shared/inputpic.gif";
file = new File( name );
Toolkit toolkit = Toolkit.getDefaultToolkit();
try {
imageURL = new URL("http://www.google.com.my/images/logo_sm.gif" );
} catch (MalformedURLException e) {
if ( file == null ) {
sourceImage = Toolkit.getDefaultToolkit().getImage( name );
System.out.println( file );
} else {
sourceImage = toolkit.getImage( imageURL );
System.out.println( file );
width = sourceImage.getWidth( this );
height = sourceImage.getHeight( this );
System.out.println( "Pixel = " + width + "x" + height );
if ( width * height == 1 ) {
title = "Greetings"; // Shown in title bar of dialog box.
if ( file == null ) {
message = "Unable to load the file " + name;
} else {
message = "Unable to load the link " + imageURL;
JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE);
}could anyone test this n give my the reason i couldnt even load the image -
Can we load and unload the files in the run time?
Can we load and unload the files in the run time?
For example there are four files named "test1.h & test1.c" and another set "test2.h & test2.c" (I attached them as attachment to this post).
test1.h contains code:
int variable; //variable declared as integer
test1.c contains code:
variable = 1; //variable assigned a value
test1.h contains code:
char *variable; //variable declared as string
test1.c contains code:
variable = "EXAMPLE"; //variable assigned a string
So here, in this case can I dynamically load / unload the first & second group of files so that the same variable name "variable" can be used both as integer and string? And if yes, how is that to be done?
Solved!
Go to Solution.
Attachments:
test.zip 1 KBWhat do you mean by "dynamically"?
If you want to have a variable that either is an int or a char in the same program run, I'm afraid your only option is to define it as a variant and assign from time to time the proper data type in the variant according to some condition. Next, every time you access the variable you must firstly check which data type is stored in it, next access it in the proper way.
If on the other hand your option or to have a run in which the variable is an int, next you stop the program and in a following run it is a char, you may have it by using some appropriade preprocessor clause:
#ifdef CHAR_TYPE
#include "test1.h"; // variable defined as a char
#else
#include "test2.h"; // variable defined as int
#endif
Next, every time you want to access the variable you must proceed in the same vay:
#ifdef CHAR_TYPE
variable = "string";
#else
variable = 1;
#endif
Does it worth the effort?
Additionally, keep in mind that this "dynamical" approach can work only in the IDE, where you can properly #define your CHAR_TYPE or not depending on your wishes: when you compile the program, it will have only one #include depending on the definition of the macro.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
Where do i find form and action java files
I was trying to add a new menuitem to the web console. I have a jsp page like pag1.jsp and has pageForm and pageAction java file. Inside struct.config file I find that form and action files are placed under"com.thortech.xl.webclient.actions.tcAddCommentForm" , but when I search for the tcAddCommentForm, I coundn't find the file. Can u tell me where should I add my form And Action files
Just what to you mean? The Info pane for the iPod in iTunes allows you to sync the iPod contacts and calendar with other calendars and contacts. There is no contacts or calendar in iTunes.
-
How to compile and run java files on a mac using command line?
can someone tell me or link me to some article on how to compile and run java files from command line on a mac? I have mac OS X leopard
What do you mean by "where to put them" ? What do you want to put anywhere ?
Have you read Peter's comment in brackets ? Perhaps you have a classpath problem ?
Edited by: Michael_Knight on Aug 31, 2008 4:23 AM -
Problem : Load PDF or similiar files( stored at operating system) into an oracle table using SQl*Loader .
and than Unload the files back from oracle tables to prevoius format.
I 've used SQL*LOADER .... " sqlldr " command as :
" sqlldr scott/[email protected] control=c:\sqlldr\control.ctl log=c:\any.txt "
Control file is written as :
LOAD DATA
INFILE 'c:\sqlldr\r_sqlldr.txt'
REPLACE
INTO table r_sqlldr
Fields terminated by ','
id sequence (max,1) ,
fname char(20),
data LOBFILE(fname) terminated by EOF )
It loads files ( Pdf, Image and more...) that are mentioned in file r_sqlldr.txt into oracle table r_sqlldr
Text file ( used as source ) is written as :
c:\kalam.pdf,
c:\CTSlogo1.bmp
c:\any1.txt
after this load ....i used UTL_FILE to unload data and write procedure like ...
CREATE OR REPLACE PROCEDURE R_UTL AS
l_file UTL_FILE.FILE_TYPE;
l_buffer RAW(32767);
l_amount BINARY_INTEGER ;
l_pos INTEGER := 1;
l_blob BLOB;
l_blob_len INTEGER;
BEGIN
SELECT data
INTO l_blob
FROM r_sqlldr
where id= 1;
l_blob_len := DBMS_LOB.GETLENGTH(l_blob);
DBMS_OUTPUT.PUT_LINE('blob length : ' || l_blob_len);
IF (l_blob_len < 32767) THEN
l_amount :=l_blob_len;
ELSE
l_amount := 32767;
END IF;
DBMS_LOB.OPEN(l_blob, DBMS_LOB.LOB_READONLY);
l_file := UTL_FILE.FOPEN('DBDIR1','Kalam_out.pdf','w', 32767);
DBMS_OUTPUT.PUT_LINE('File opened');
WHILE l_pos < l_blob_len LOOP
DBMS_LOB.READ (l_blob, l_amount, l_pos, l_buffer);
DBMS_OUTPUT.PUT_LINE('Blob read');
l_pos := l_pos + l_amount;
UTL_FILE.PUT_RAW(l_file, l_buffer, TRUE);
DBMS_OUTPUT.PUT_LINE('writing to file');
UTL_FILE.FFLUSH(l_file);
UTL_FILE.NEW_LINE(l_file);
END LOOP;
UTL_FILE.FFLUSH(l_file);
UTL_FILE.FCLOSE(l_file);
DBMS_OUTPUT.PUT_LINE('File closed');
DBMS_LOB.CLOSE(l_blob);
EXCEPTION
WHEN OTHERS THEN
IF UTL_FILE.IS_OPEN(l_file) THEN
UTL_FILE.FCLOSE(l_file);
END IF;
DBMS_OUTPUT.PUT_LINE('Its working at last');
END R_UTL;
This loads data from r_sqlldr table (BOLBS) to files on operating system ,,,
-> Same procedure with minor changes is used to unload other similar files like Images and text files.
In above example : Loading : 3 files 1) Kalam.pdf 2) CTSlogo1.bmp 3) any1.txt are loaded into oracle table r_sqlldr 's 3 rows respectively.
file names into fname column and corresponding data into data ( BLOB) column.
Unload : And than these files are loaded back into their previous format to operating system using UTL_FILE feature of oracle.
so PROBLEM IS : Actual capacity (size ) of these files is getting unloaded back but with quality decreased. And PDF file doesnt even view its data. means size is almot equal to source file but data are lost when i open it.....
and for images .... imgaes are getting loaded an unloaded but with colors changed ....
Also features ( like FFLUSH ) of Oracle 've been used but it never worked
ANY SUGGESTIONS OR aLTERNATE SOLUTION TO LOAD AND UNLOAD PDFs through Oracle ARE REQUESTED.
------------------------------------------------------------------------------------------------------------------------Thanks Justin ...for a quick response ...
well ... i am loading data into BLOB only and using SQL*Loader ...
I've never used dbms_lob.loadFromFile to do the loads ...
i 've opend a file on network and than used dbms_lob.read and
UTL_FILE.PUT_RAW to read and write data into target file.
actually ...my process is working fine with text files but not with PDF and IMAGES ...
and your doubt of ..."Is the data the proper length after reading it in?" ..m not getting wat r you asking ...but ... i think regarding data length ..there is no problem... except ... source PDF length is 90.4 kb ..and Target is 90.8 kb..
thats it...
So Request u to add some more help ......or should i provide some more details ?? -
Is it possible to zip and use java file in jar?
there are 2 cases:
1. only zip no-package java files in a jar file:
i.e.
------------zip
NoPack0.java (they are no package)
NoPack1.java
NoPackN.java
------------as NoPack.jar
2. zip both no-package and packaged java files in a jar file
i.e.
------------zip
NoPack0.java
NoPackN.java
pack\HasPack0.java (they are packed in 'pack')
pack\HasPackN.java
------------as HasPack.jar
my question is:
for 2 cases above, if both, one or none of them can be use as a jar file in -classpath for javac compiler?
thxhas my Q been answered?
-
Help with load and unload swf file.
hello, just now i try, to load my file using the code snippet 'load and unload' i manage to load the next file succesfully but why my recent file still appear in the background? how do i make it gone?
When you load another SWF you're loading it 'inside' the current SWF but it appears that you want to replace the current SWF entirely with the new SWF, is that correct?
If so you should make what's usually known as a 'stub' or a loader. Make an empty project that merely acts as a loader. It should load your first SWF and when you press a button on that first SWF to load a second SWF, it should signal the 'stub' it's loaded inside to unload the first SWF and then load the second.
e.g. a stub.swf (just coding out of memory, not error checked, just to give a general idea):
// make a new loader to do all the loading of SWFs
var loader:Loader = new Loader();
// and display
addChild(loader);
// a function to load a SWF into the loader (replacing any existing SWF)
function loadSWF(path:String):void
// assure path is defined or do nothing
if (!path) return;
// load requested SWF
loader.load(new URLRequest(path));
// load initial SWF
loadSWF('/path/to/1.swf');
For your 1.swf to use the function, you're currently inside the .content property of a Loader so I believe you can just run a command like: Object(this.parent.parent).loadSWF('/path/to/2.swf');
This example obviously lacks any error checking or transitions but you can add those and season to taste. -
I can view youtube videos, but nothing else. Some videos take forever to load and my webpages are starting load slowly as well.
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Tools > Options > Privacy > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Class tab when editing .java file
In version 9.x of JDev, when editing a java file, along with 'Source' and 'Design' tabs at the bottom of the editor window, there was a 'Class' tab that let you manage the class' attributes,(methods, attributes...). In 10.1.3.0.3, this tab is missing. Where can one manage getter and setter attributes like previous versions?
mikeThanks Shay. It seems I have to type in the declaration of the attributes before they show up in the Generate Accessors Dialog. Thsi approach is a big step backward!
What happen to the 'Class' tab??!! Anyone know?
I didn't get a vote on this!
mike -
How to call inner class method in one java file from another java file?
hello guyz, i m tryin to access an inner class method defined in one class from another class... i m posting the code too wit error. plz help me out.
// test1.java
public class test1
public test1()
test t = new test();
public class test
test()
public int geti()
int i=10;
return i;
// test2.java
class test2
public static void main(String[] args)
test1 t1 = new test1();
System.out.println(t1.t.i);
i m getting error as
test2.java:7: cannot resolve symbol
symbol : variable t
location: class test1
System.out.println(t1.t.geti());
^There are various ways to define and use nested classes. Here is a common pattern. The inner class is private but implements an interface visible to the client. The enclosing class provides a factory method to create instances of the inner class.
interface I {
void method();
class Outer {
private String name;
public Outer(String name) {
this.name = name;
public I createInner() {
return new Inner();
private class Inner implements I {
public void method() {
System.out.format("Enclosing object's name is %s%n", name);
public class Demo {
public static void main(String[] args) {
Outer outer = new Outer("Otto");
I junior = outer.createInner();
junior.method();
} -
Replacing Class definition comments in java files.
Hi to all,
Im trying to implement a java file replacer that opens about a thousand java files and replaces the first comment lines. That is to say assume that these thousand java files have this comment at the beginning of them:
*Date Author Changes
*${date} ${author} initial release
My application should find these comments and replace them with
* Project Name:
* File: ${file_name}
* Purpose:
* History:
*Date Author Changes
*${date} ${author} initial release
I dont need any GUI. just I will print the changed files to console.
My question is is there any example applications you guys can suggest and should I use XML and XSL to implement this application?
Any suggestions are highly appriciated.
Best Regards.
MetanHow is XML going to help you? Also for a task which you describe its easier to replace it wholesale rather than compare what is present and what is not. If you want to selectively want to remove stuff you might run into issues where you have to compare the name of the file, and you would not even know if the documentation already existing is the right one if you do not replace.
If at all you wish to go with XML it is better with XSL transforms but I guess that would be an overkill for the purpose.
As previously suggested perl is a very good option, or if you have unix operating system you can even try some basic shell scripting to do your job
Thanks -
JSP/EJB compilation: don't put .java files in EJB jars!
I was having trouble compiling a JSP that uses an EJB remote interface.
The Weblogic console printed an error like this:
Thu Aug 31 14:13:58 PDT 2000:<E> <ServletContext-General> Compilation of
D:\weblogic\myserver\classfiles\jsp_servlet\_hl
og.java failed:
D:\weblogic\myserver\tmp_deployments\ejbjar-6787.jar(hlog/ejb/LogEntry.java):5:
class LogEntry
is public, should be declared in a file named LogEntry.java
(source unavailable)
1 error
The fix was not to include source files in my EJB jar. Before I was
using a simple jar command:
>jar -cf hlog.jar hlog META-INF
Which of course included both class and source files in the jar (I
didn't see the harm in this).
I changed to:
>jar -cf hlog.jar hlog\ejb\*.class META-INF
and the problem went away.
Thought this might save y'all some time and grief...
John
In the previous message: "I'd putt String as the return value for all methods"...
all methods = doInserir, doAlterar and doRemover.
public String doInserir() {
this.produtoRemote.inserir(this.produto);
return "sucesso";
public String doAlterar() {
this.produtoRemote.alterar(this.produto);
return "sucesso";
public String doRemover() {
this.produtoRemote.remover(this.produto);
return "sucesso";
}Just to clarify.
Thanks! -
JSP precompilation and my .java files compilation issues / building WAR file using ANT
Hello.
I am new to working with WAR files and the whole process of it. A little
background on what we are using. We are using, WLS 6.1 SP3. I am using the
ant.bat that is supplied in the bin directory of the WLS install.
I am trying to work with ANT and getting it to build the file. I am making
progress, but at a point where I am having trouble getting my java code
files to compile using ant. I am having one issue and looking to do one
other item.
1) I would like to precompile the JSPs if possible prior to putting into the
WAR file. Not sure if this is done or not, but there was a utility when I
was working with ibm's app server that gave us the ability to do a batch
complile. Was thinking that maybe a similair concept is possibly here.
2) Having issue getting ant to compile code properly. In the compile
section of the build.xml file for ant, I tell it where the source files are,
and the destionation folder for the compiled class files. I then try to set
the classpath so that it finds the .jar files that are necessary for my
source files to complile. But, it won't find them. And not sure how come.
I may be going about this all wrong, but dont know. Here is the compile
section of the build.xml I am using:
<target name="compile" depends="prepare">
<javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
classpath="$(lib.home)"
debug="on" optimize="on" deprecation="off"/>
</target>
One note, I've tried many different items in the classpath line, which
don't work. if I do *.jar it fails at complie time, invalid argument. As
well as if I use *.* and so on. if I list the explicit file names, it still
doesn't seem to find them.
I was wondering if anyone could help, if you need anymore information let me
know, I can send the entire build.xml if necessary. I may be missing
items, seeing that this is my first try at using ANT.
Any help is appreciated and thanks in advance. Hopefully not sounding too
off the wall. Hopefully get some clarification and understanding.
Thank you.
Kevin.Kevin Price wrote:
Hello.
I am new to working with WAR files and the whole process of it. A little
background on what we are using. We are using, WLS 6.1 SP3. I am using the
ant.bat that is supplied in the bin directory of the WLS install.
I am trying to work with ANT and getting it to build the file. I am making
progress, but at a point where I am having trouble getting my java code
files to compile using ant. I am having one issue and looking to do one
other item.
1) I would like to precompile the JSPs if possible prior to putting into the
WAR file. Not sure if this is done or not, but there was a utility when I
was working with ibm's app server that gave us the ability to do a batch
complile. Was thinking that maybe a similair concept is possibly here.you can use weblogic.jspc
http://e-docs.bea.com/wls/docs70/jsp/reference.html#57794
or just set the precompile flag in weblogic.xml
You can configure WebLogic Server to precompile your JSPs when a Web
Application is deployed or re-deployed or when WebLogic Server starts up
by setting the precompile parameter to true in the <jsp-descriptor>
element of the weblogic.xml deployment descriptor.
>
2) Having issue getting ant to compile code properly. In the compile
section of the build.xml file for ant, I tell it where the source files are,
and the destionation folder for the compiled class files. I then try to set
the classpath so that it finds the .jar files that are necessary for my
source files to complile. But, it won't find them. And not sure how come.
I may be going about this all wrong, but dont know. Here is the compile
section of the build.xml I am using:
<target name="compile" depends="prepare">
<javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
classpath="$(lib.home)"
debug="on" optimize="on" deprecation="off"/>
</target>
maybe because you are not using curly braces there on lib.home??
if you do it the way above, you would have to list all your jars
classpath="$(lib.home)\lib1.jar:$(lib.home)\lib2.jar"
or you can nest
<javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
debug="on" optimize="on" deprecation="off">
<classpath>
<fileset dir="${lib.home}" includes="*.jar" />
</classpath>
</javac>
One note, I've tried many different items in the classpath line, which
don't work. if I do *.jar it fails at complie time, invalid argument. As
well as if I use *.* and so on. if I list the explicit file names, it still
doesn't seem to find them.
I was wondering if anyone could help, if you need anymore information let me
know, I can send the entire build.xml if necessary. I may be missing
items, seeing that this is my first try at using ANT.
Any help is appreciated and thanks in advance. Hopefully not sounding too
off the wall. Hopefully get some clarification and understanding.
Thank you.
Kevin. -
Oracle EBS R12 - how to compile jsp and keep .java file
Hello.
When I compile the jsp file, it will create the _pagename.class file into $COMMON_TOP/_pages directory. Some of the time it also keep _pagename.java file in there.
How can force the compiler to keep the java file always. I am using following command which creates _pagename.class file.
perl $FND_TOP/patch/115/bin/ojspCompile.pl --compile -s 'ptcResponse.jsp' --flush
It keeps the _pagename.java file some of the times and not other, example if the compilation fails then java files stored there otherwise only class.
There has to be some way/location to see/keep the _pagename.java file, we need them for troubleshooting runtime error.It keeps the _pagename.java file some of the times and not other, example if the compilation fails then java files stored there otherwise only class.
This is an expected behaviour.
There has to be some way/location to see/keep the _pagename.java file, we need them for troubleshooting runtime error.
The "perl ojspCompile.pl" command doesn't offer this -- Issue "perl ojspCompile.pl" and you will see what options are available.
Your option is to keep/save the java files in a different directory.
Thanks,
Hussein
Maybe you are looking for
-
How to get the last value edited by users from JTable?
Hi. I have a JDialog that includes an editable JTable. This table is used to set up field caption and font for a report program. I found only when cursor is moved to another cell, the value in current cell being edited will be transferred to Table Mo
-
Adobe Acrobat Reader for Windows Server2012 ?
Is there a recommended Adobe Acrobat Reader for Windows Server2012 ? Will Version XI (11.0.06) for Windows 8 work ? It is most annoying not to be able to open pdf files on Server. Thanks, Al
-
I have a Dell Inspiron 710m, with Windows XP, Norton 360, IE8. My computer understanding and needs are simple. Norton lets me know that Firefox is eating memory and CPU. The machine often jams while this happens, whether or not Norton has flagged an
-
How to file sharing with windows PC?
Hello. I read this here: http://www.maclive.net/sid/236 but I do not see the option to check "windows sharing" in the "sharing" menu in "system preference". Does anyone know how I can access an external hard drive that is connected to my iMac PPC? I
-
Moving only one component value into a register AGAL
Hi Do any of you know if there is any way in AGAL of moving a component value from one register to the other without touching the other components in the register? I notice that the following line... mov ft1.a, ft0.a ...will also overwrite the rgb co